Why does cs need advanced mathematics?

Why does cs need advanced mathematics?
I'm good enough for programming but suck shits at maths.

Should I just drop out?
Already failed maths once

>I'm good enough for programming
no you're not

>I'm good enough for programming
Not if you suck at math you aren't

>Should I just drop out?
Probably

Fuck you niggaz I'm getting good grades for my first year in literally everything but Maths

Which Math""""s""""" are you having trouble with?

No one cares Pajeet.

Then go into a field that doesn't need math

>good at programming
good at code monkeying

Alright then, mr. i don't need maths

write a function that converts a hex string to an integer

What is this man in pic related advocating?

I'm confused. Is he pro prostitution or anti coal mining?

He's pro "trying to seem deep and insightful on twitter to inflate his own ego"

math is a meme. a filter to weed out students and univeristy to collect money from failing students and even top students. They know the area will be outsourced within your lifetime.
Math is ok but not neccessary. Only the basics are needed.
People carved cities out of mountains without lambda calculus and shit.

Triangles!

Write a function that converts a hexadecimal string to an integer, mr. math is a scam.

Any language is fine, i just want to see if you're a competent problem solver.

It is valuable. Do you want to be one of those people who claim frame math is too hard while they spend days tinkering around in interface builder trying to get it to work and then the design changes just a little bit and they have to start over while you just change some numbers?

Find me a practical application for this first.

He's pro-prostitution, but also probably pro-miner. The reasoning sounds vaguely socialist, so I'm guessing he's pro-letariat.

That's so fucking easy, how is it even related to math?

I just gave you a simple programming task.
It doesn't even have any math in it.

Are you saying you're too stupid to come up with a solution on the fly?
No wonder you failed math.

it has multiplication in it, the point is, OP made the claim that he's good at programming and shit at math

It's exactly this and nothing but this. Anyone that says otherwise has never studied and never worked as actual developer.

It has 0 practical use. Whatever maths you might need you will read upon yourself as you are in the progress of applying it.

Multiplying isn't math, that's calculating.

The math he is talking about is very high level uni shit such as discrete structures or numerical programming, where you try calculating the error margin of algorithms through formulas.

Unless you actually want to go in research and do something crazily specific, you will never need anything of that again.

Literally 2 seconds of google and I don't even code

int intValue = Integer.parseInt(hex, 16);

alright, now how would you implement parseInt(char *str, int base)

Bleh, C - ugly.

Here's a real life example of something just like that:

The last seven digits of HP TRIM barcodes are base 36 alphanumeric numbers.

I made a little calculation function at work with VBA in Excel so I could add or subtract base 10/36 with the barcode numbers.

I did this to check the calculated barcode to its internal record number, to see if any record numbers were manually inputted wrong (eg. "2011/00700" instead of "2010/00700", after -10 gives me "2010/00690").

That's a retarded prototype btw.

If you are going to use a char pointer you will have to pass its length too. Relying on null termination by caller is terrible design and error prone.

People that hate math are the same retards that go "C/C++ too hard!"
Fucking casual cancer.

When you have to deal with mixing different character widths, relying on null termination can actually be the "robust" option because, at the very least, a corrupted string won't cause a segfault.

???
get the input
separate in letters and numbers
change the letters into its numeric representations
add it to the numbers

am i missing something?

lol, sorry, gonna read the wiki on hexadecimals first

You don't use char pointers for different character widths and you don't have different character widths in a hex string.

Sorry dude, but what I said simply applies.

Best practices in C would - btw - also make you have another parameter (a pointer) to store the result in, so that the return value is reserves for error codes.

Don't let these tards fool you that what they are doing is somehow different, special or unique. Most programmers have banks of prepared modular code that they copy and paste and make minor changes to fit the solution.

Knowing the logic and the language is enough. Just let your code do the math heavy lifting for you.

And good luck.

Because you are working with a lot of data structures that can be abstracted as mathematical objects and if you can do that you can use math to simplify your problems dramatically. There are many simple problems that you can solve in an insanely stupid way, i.e. you have two cars starting at positions x_1 and x_2 and they drive towards each other with speeds v_1 and v_2 -- when will they meet? Yeah, children can solve this analytically, the answer is just t = (x_2 - x_1) / (v1 + v2). A computer needs to make two additions and one division to get the result, that is done in pretty much no time and the result can be calculated with double precision:

double calc_time(double x1, double x2, double v1, double v2)
{
return (x2 - x1) / (v1 + v2);
}


On the other hand you could write some horrible thing such as:

double calc_time(double x1, double x2, double v1, double v2)
{
double pos1 = x1;
double pos2 = x2;
double t = 0.0;
while(pos2 - pos1 > THRESHOLD) {
pos1 += v1 * DELTA_T;
pos2 -= v2 * DELTA_T;
t += DELTA_T;
}
return t;
}


Which can take a ridiculous amount of time to get done within double precision. On top of that it has a lot of problems: It only works for some values of (x1,x2,v1,v2), it needs predefined values THRESHOLD, DELTA_T. You need some way to determine when to throw an exception which will be difficult to figure out without math. You need a way to determine reasonable values for your constants, again, difficult without math. So yeah, your witty way to get around math resulted in a horrible program. You may think this is a stupid example, anybody solve it analytically, but I've seen shit like that with somewhat more advanced problems. Also the whole exception part is very important: With math you can actually analyse your solution and fully understand what can go wrong. You can't always test your algorithms for all possible cases.

computer science degree wants you to learn how to calculate O(N), deal with matrices, and also checks if you know how to think outside the box, and checks if you are good with problem solving

This is easily the most concise and accurate answer in the whole thread. Code can take a (relatively) long road to the solution, Good Codeā„¢ is using logic (math) to get to the "correct" solution.

ok, forgot to multiply the numbers to 16**(len - pos)

bitch ass nigga

if (x2 == x1)
return 0.0;
else
return (x2 - x1) / (v1 + v2);

unless you want to get a NaN when x2 == x1 and v1 == -v2

That's plain logic. Which you learn by programming.
Not by abstract maths.

Fuck you dawg

Cuh, you a mark. Brrrrrrat.

I found the college dropout!

lambda calculus is the easiest dude

Well math is plain logic in a way. It's just a sophisticated way to organise that logic which you will need when things get more complicated than the example. Also I've really seen this kind of lazy programming and I've heard the excuses "I tried to figure it out, but when I tried it said 1 = 1 and I didn't know where to go from there. The program works just fine!"

> Very high level
> Discrete Structures
I don't think 2nd/3rd year uni courses count as high level, more like the bare minimums.

Hey look! Another dropout!

Because real programming involves writing algorithms. What you're looking for is called "web dev".

Bu- Bu... Timothy Leary told me to!!

Both solutions are valid logical solutions. But math lets you see the best option

Because we still treat "Computer Science" like it's the art of/goal of abstraction. We teach it like a liberal art with theories of the theory of operation, and labs and workshops on applying a theory of the theory of operation. We still treat it like it's a fitness or English degree, where the actual focus of the degree is list during the curriculum and a teaching establishment's need to "teach" rather than to educate.

Comp. Sci needs to go the way of the dodo. Nobody gets a "Business Degree" anymore. They get degrees in Business Administration. Business Development. Business Operation. There should be degrees in "Embedded Device Programming", "High-Level Applications", "Networking and Design", "Electronic Security", "Electronic Hardware Repair and Design", and etc. If someone's end goal is the study/career of designing ICs for phones/ATMs/Etc, they need courses in Electrical Engineering, not Math beyond a certain point. Yeah, hardware crypto is gonna require more than basic math, but why the hell is learning about vector spaces a pre-requisite for the 3rd portion of Software Testing and Design?

Yeah no, I finished and work.

What makes me think that you haven't even finished school though?

Calculus isn't advanced math

How the hell do you propose understanding linalg without vector spaces? Are you one of those who argue we dont need mathematical proofs? That knowing how to solve x2 +2 = 3 is enough?

proofs are a meme
you don't need them in real life

Found pajeet!

Mother Russia always insists on proofs.

> The reasoning sounds vaguely socialist
How so?

Computer programming and computer science are different things, I guess.

Sure, sound technicians don't need to be able to prove fourier transformations, but somebody had to invent them in the first place. Mathy, abstract, computer science mumbo-jumbo that bores 1st years actually finds its way into the toolkits of average joe programmers who don't give a shit about math.

You do need math if you have to modify fft or even to understand what the heck you are doing.

This idea of just using everything without understanding is harmful and promotes lazyness and stupidity.

Uni maths is overkill though

Linalg 1,2, calculus 1,2, discrete math, combinatorics, statistics and probability. All very usefull and applicable in daily life

The biggest tech giants got there using tons of statistical models, which are based and proved in calculus. You think you can skip calculus and go straight to making your AI waifu?

Why do people always complain about math in computer science? It's not like you need to know any hard math for most CS tracks. At my university, CS majors just have to take discrete math, probability/statistics, linear algebra, and calculus 1 & 2. Of course you'll have to take a few more depending on your track, but for the most part they're nothing compared to real math classes.

Why? Application or not, you still can't do it

See, you used mathematics and your knowledge of programming to make a more robust solution. That's exactly what the person you're replying to is talking about.

Not the person you directed this at, but caught my interest:

int hexToInt(std::string hex)
{
int len = hex.size(),
position,
positionValue,
decimalValue = 0;
bool validHex = true;
char digit;

for (int i = 0; (i < len && validHex); i++)
{
digit = hex[i];
position = len - i;

if (std::isdigit(digit))
positionValue = digit - 48;

else if (std::isalpha(digit) && (digit = std::toupper(digit))

Exactly that, CS math is simplified compared to Mathematics math... And people here call it "advanced" haha

Yes, and I'll be damned if some AMD user on g tries stopping me.

that code is gnarly as fuck
here's mine from yesterday

char hex_value(char c)
{
c -= (c >= 'a' && c = '0' && c = 'A' && c

Lambda calculus is a goddamn meme, there is no instance in which you would be storing data in church numerals as opposed to normal fucking fixnums. What you should be devoting your time to is index calculus

if you want to learn fp properly

Look here how he shrouds himself in cynicism, keen as ever to distract himself from his unfailingly flaccid member.

Signal processing is anything but simple

OP you can't argue with compscitards, they fell for the college meme and they've already invested half their lives in debt for just a piece of paper saying they fell for the meme, which by the way, they earned by mostly SELF TEACHING themselves because college professors can't actually teach for shit. When they get their first job the confirmation, that they wasted a bunch of years like a bunch of slaves for nothing useful that they couldn't learn themselves, hits them hard, and they start feeling like retards for the first time in their lives despite being retards all their life.

So you can see why they'll never say anything bad about college

Well its not simple but its not exactly as advanced as math Math majors study...
And linalg 1 on cs is usually simplified version math majors study, thats what i was refering to

Not socialist but using words like "clouded by moralistic view of sexuality" exposes him as full-time libcuck.

More advanced topics in signal processing involve some pretty heavy complex analysis. Don't overestimate what math majors do, they do very different things, but not exactly more difficult.

You got a point there, i stand corrected

I dont like math either, thats why I choose the web development route.

But my problem is that I learned how to use a calculator. College and schools still see that as the devil's work.

But I am a decent problem solver, just dont ask me to make complex math calculations without a computer.

You usually can use calculator at university.

I had one class tho, calculus 2 (i think, or 1) where we werent allowed to use anything. So we had to solve definite integrals by hand, fun times.

>Why does cs need advanced mathematics?

Never talk to me or my wife's son again

> An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems

You cant dothat stuff without math

Coding (or pajeetery) on other hand which is not cs does not require advanced math

Yeah, not around here. We are not allowed to use calculator for shit on college, at least in my degree.

But I am lazy, and it is my own goddamn fault. I lack the discipline from my high school days where I struggled but I learned. 4 years later I decided that I had enough job experience and knew what I wanted to do for a superior degree, so I got a spot on a federal and free college here in Brazil. One of the best here, which probably isnt much.

Then I realized my brain not only deleted everything more complex than discrete math but I was rejecting relearning it too. I bullshit my way out of fundamentals and calculus 1. Doing these things by hand is definetely not fun for me kek

I ended up in backend web dev with Java so I don't really use any maths at all

man strol

It's often *not enough*, actually.

You could do better with software if you knew more maths, for all of performance, modularity and correctness.

Maybe your UI doesn't require it, but that layer you're writing between two software stacks, that one could be better. And a lot more.

Alas, it's not that easy I guess. Especially not in countries that made universities for-profit diploma mills that provide a cheaper approach to individual low-end vocational group training.

Plus of course everyone is on a huge ass financial clock anyhow. You got three years and better be done with training, cheat your way through multiple choice tests if you have to. Herp.

This, i cheated my way through numerical math. Im sorry to this day.

math is to weed out idiots who just want to jump on board any random university program and come out with a 90k+ annual paying job. Same reason why math is a required highschool credit in basically any post secondary institution that isnt shit, as otherwise you'd have retarded "artistic" students flooding the job market and stealing work from actual intellectual people.

>actual intellectual people are only the math savvy

Kek, good b8 m8. Have your first (you).

>Multiplying isn't math, that's calculating.
It's arithmethic whic his basic math.

no, but intellectual people don't fail at math. Actual smart people overcome most things thrown at them regardless of if they're specialized in it. Someone who's bad at math is probably bad at 20 other university subjects too, and is bound to fail unless they cherrypick their courseload and just take 4 years of bullshit classes.

This guy has a point Dont buy into everybody is special snowflake bullhit. Smart people in one field tend to be smart in other. Intelligence also encompasses memory

I use and library

It's not only that though, it's actually useful to know a lot of maths (and be able to work with it in a lot of fields).

You are probably not going to find out how you memory efficiently can look for the shortest path that touches a set of lines scattered randomly in 3D space on your own all that easily, but it's possible that you need to solve this somehow.

And even implementing existing solutions usually requires that you can understand the maths because you otherwise can't decompose the problem into simpler constituents in case of the results being clearly wrong ... it will become a coding problem that you just almost can't solve.

Well, just one example, but all that maths, it relates to reality, and just about everything the mathematicians already investigated has an use in software. And a well-paid and important job (one of those that has advanced society by a shitload recently) is to understand and adapt this to problems that need to be solved on a computer.

Oi mate, please. Go shove a fibonnaci tree up your ass, how old are you? 22?

Its people like you with those out of reality belief that gives us such a bad rep. You probably think you can learn anything if you apply yourself enough just because you have a good grip on imaginary axioms?

Its not even this weak ass "everybody is a snowflake" bullshit. Its like saying that one is just smart if he is Da Vinci 2.0, stupidity.
Can you be the next Van Gogh? Can you write the next great american novel? I doubt you could do both of these things even if you waste your whole life into it.

Yeah someone with a math degree will do well on the IT field but dont you go tripping with this childish feeling of looking down at the "excentrical artistic pleb".

i don't even know what you're trying to say since you worded it so fucking poorly, but van gogh was an idiot who wasn't even recognized until years after he botched his own suicide, and vinci wasn't a genius, he was just ahead of his time. If you put him with todays top scientists he'd look like a damn fool and probably wouldn't be able to grasp any of the complex subjects presented to him.

>Linalg 1,2, calculus 1,2, discrete math, combinatorics, statistics and probability. All very usefull and applicable in daily life
You must have a pretty strange daily life.

Fuck sake m8 we are talking about cs math not inventing unified theory. And noone is arguing that if you apply yourself can learn anything. Just that some people are fucking retarded and cant even basic math like OP.

Long time ago.

Nederpelt's book on it is taxing. Same could be said for about this homotopy type theory book my meme mathematician friends keep pushing onto me.

math is just a jewish meme, dont fall for it
most jobs dont require any math, just codemonkey skills