r/computerscience • • Dec 06 '22

The connection between math and CS

I'm a sophomore in college and I can't find the connection between math and CS. I know they're closely related. I'm currently finishing Calc 3 and we're doing flux integrals. They just seem so irrelevant to my future! I can understand math's capacity in cryptography. What I can't understand is derivatives and integrals. It's so hard to find motivation to complete these math courses when I can't relate them to high level programming. I could understand the application for simulated physics or something but I just don't see how that will be relevant to my future.

Anyways, I just want some clarification or reading on how closely related these two fields are. Some sort of connection to inspire me to do well in math. A book or something. I need a rabbit hole. Thanks

161 Upvotes

97 comments sorted by

179

u/modabs Dec 06 '22

The problem is, programming isn’t computer science. Programming is a small, but very popular, discipline under the computer science umbrella. I’ve personally never used derivatives or integrals in my own programming, but I’ve had to use complex matrix and linear Algebra for complicated image/LiDAR/radar/camera transformations, which were the foundation for the code that I used for object recognition stuff that I had to work on, and you need to have calc 1 and 2 as pre reqs for that.

87

u/fatgamornurd Dec 06 '22

And to add to this, computer science is much more an academic degree than a trade degree. You learn some nice practical skills like programming and design patterns, but the grand majority of what you learn are prerequisite to graduate courses and research.

31

u/modabs Dec 06 '22

Exactly, I didn’t learn how to really to code at a professional level in my bachelors program, I learned how to think and analyze at a high level, which prepared me to learn to really code on the job. But it also prepared me to get my masters in cs pretty easily.

9

u/SocksAndPi Dec 06 '22

Really? To pass my programming classes, I had to write/code my own program that met a list of requirements (aside from Assembly Language course).

The amount of calculus I've had to learn is a bit ridiculous, though, it was easy enough to pass.. just annoying. Sometimes I feel I'm getting a mathematical degree.

9

u/modabs Dec 06 '22

I think of the calculus as more to condition your mind to complicated problem solving more than anything else. Also I had some programming classes where we had to code, but NOTHING compared to actual industry level development.

2

u/OddInstitute Dec 07 '22

Calculus is mostly to teach you how to think about continuously-varying systems. This is often not important for CS since the systems are discrete, but if you need continuous analysis, nothing else will do.

Time is the usual place that computer systems become continuous e.g. looking at probability distributions over arrival times for network traffic to determine how you should allocate machines.

It’s also the case that many things are easier to analyze in the continuous case than in the discrete case like the growth rates of algorithm runtime or optimizing integer-valued functions for e.g. ML.

Finally, the physical world is quite continuous, so calculus is the default language of most engineering disciplines. If you are writing control software to integrate with an electrical or mechanical system, the other folks working on it will express their system design using calculus and if you don’t know calculus, you won’t be able to collaborate on these sorts of projects.

3

u/[deleted] Dec 06 '22

[removed] — view removed comment

3

u/WishfulLearning Dec 06 '22

Wait, you did two degrees at once? That's crazy! How did you pull that off?

3

u/[deleted] Dec 16 '22

[removed] — view removed comment

1

u/WishfulLearning Dec 16 '22

Pretty inspirational! And some people struggle with just one and no work. Hats off to ya :)

1

u/Busy-Description5658 Oct 06 '23

Did you manage to find a job at the end?

6

u/fatgamornurd Dec 06 '22

That's because YOU ARE. Computer science is very much the son of mathematics the same way physics is.

3

u/Blazerboy65 Dec 06 '22

What degree are you pursuing?

2

u/SocksAndPi Dec 06 '22

B.S. in Computer Science, focusing on security (network and application).

16

u/RomanRiesen Dec 06 '22

You often use derivatives when doing optimization (sgd, newton methods).

And since CS is mostly discrete integrals are mostly sums over arrays. And I use thos almost daily.

However I tried to come up with an example of a flux integral in a core CS discipline but failed (outside of electrodynamics or fluid dynamics lol). Probably in some geometric algorithm somewhere? (At least in the derivation or proof thereof? Would love to know if someone knows an application.)

7

u/ObjectManagerManager Dec 06 '22

I agree with the sentiment. But it'd be remiss not to acknowledge that autodif packages exist nowadays. Many ML engineers can get by without ever computing or programming a derivative by-hand. It's rare even for me, and I work in basic ML research.

3

u/OddInstitute Dec 07 '22

Definitely rare, but not knowing what a diff is will make autodiff really weird and hard to use beyond “push button, get optimize”.

9

u/JuZNyC Dec 06 '22

This is why I've always maintained that software engineering should be a separate degree from computer science.

1

u/[deleted] Dec 06 '22

Yeah thats a good point.

I do software development but studied CS, theres like 50% or less overlap.

2

u/[deleted] Dec 06 '22

I've taken linear algebra and neither calc 1 or 2 should be a prereq for it.

0

u/[deleted] Dec 06 '22

[deleted]

4

u/LilQuasar Dec 06 '22

you can do a linear algebra course without using or mentioning integrals and derivatives and depending on what youre doing you might not need them as prereqs either, same way you can mention and use complex numbers in linear algebra without needing a complex analyis course as a prereq

1

u/ShyMathGuy Apr 20 '25

Computer Science is the science of creating Computer Programs. A Computer Program is instructions to a computer to perform a particular specification. So Computer Science is:

  1. Writing a specification.

  2. Writing a computer program that carries out the specification.

Behind the scenes is a program that runs the computer with a specification that says to run the programs created by the computer programmer.

Theoretical Computer Science is the science of specifications for which no computer program exists that performs it.

87

u/fatgamornurd Dec 06 '22

They are extremely close... just not at calculus.

Calculus is a very niche topic in computer science. It appears in computer graphics, signal processing, machine learning, and quantum computing. There are also niche calculus perspectives on algorithms and run time but a lot of those can also be done without calculus.

And although calculus itself is not that involved in computer science, analysis is. For instance, evaluating run time is just bounding sequences of functions as they approach infinity.

But for the most part, it's discrete maths. Logic, combinatorics, algebra and number theory heavily dominate computer science.

14

u/[deleted] Dec 06 '22

Second this comment. As for how math relates with programming, maybe OP should look into programming language theory or type theory. I recommend Curry-Howard correspondence as a start.

5

u/WikiSummarizerBot Dec 06 '22

Curry–Howard correspondence

In programming language theory and proof theory, the Curry–Howard correspondence (also known as the Curry–Howard isomorphism or equivalence, or the proofs-as-programs and propositions- or formulae-as-types interpretation) is the direct relationship between computer programs and mathematical proofs. It is a generalization of a syntactic analogy between systems of formal logic and computational calculi that was first discovered by the American mathematician Haskell Curry and the logician William Alvin Howard.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

5

u/crb233 Dec 06 '22

I wouldn't say it's niche, exactly. Maybe it's not a central topic in CS, but it shows up all over the place: optimization, numerical methods, robotics, analysis of algorithms (big-O notation is based in calculus, although we often ignore that), probabilistic algorithms, algorithmic combinatorics (generating functions), algorithmic game theory, general algorithm design (optimal parameter selection).

I think it basically shows up everywhere in varying amounts, at least on the research front. If you're not doing research, then you may not need to understand the calculus from some of these areas, but it's still important to the cutting edge.

1

u/fatgamornurd Dec 07 '22

This might be a controversial opinion, but I do think numerical methods and robotics are niche topics. Numerical methods was only offered by the math department at my school and I don't think robotics was offered outside electrical and computer engineering.

Algorithms I understand uses a lot of analysis and ya I guess depending on who you ask, there isn't really a difference between Calc and analysis so I'll give you that one.

18

u/Life-Administration8 Dec 06 '22

I’m taking comp graphics and it’s very math intensive linear algebra more specifically.

2

u/[deleted] Dec 06 '22

What aspects of linear algebra are used?

20

u/Poddster Dec 06 '22 edited Dec 06 '22

What aspects of linear algebra are used?

Is this a challenge or a serious question? :)

Anyway, a serious answer is that almost all "movement" or positional representation in graphics is done via vector and matrix manipulation, and almost all rendering involves various forms of linear algebra or things that use linear algebra, e.g. interpolation, space sampling, barycentric coordinates etc.

One of the main reasons that GPUs are so powerful and good at what they do is because they're machines built to solve as many linear algebra equations at the same time, as fast as possible, primarily in the form of FMADS.

1

u/NutGoblin2 Dec 06 '22

Matrix math is a giant part of 3d graphics

33

u/BukakkeLord420 Dec 06 '22

This is what I learned as a 30 yr old finance major. I literally do not remember almost 80% of everything that was taught to me.

But college taught me to learn and solve highly complex problems and concepts. This translates to the real world for when you have a job and you are able to learn the process and workflow of your job faster than your peers.

Congrats you’re now more competitively equipped to be a smart guy in life by having college challenge you to push your mental boundaries.

9

u/tender_walrus Dec 06 '22

As others have stated, for day to day programming as a software developer, there might be some math like linear algebra but that is entirely dependent on what kind of software you are developing. I'm currently a graduate student looking at a lot of programming language and type theory research, and there seems to be a large amount of overlap between mathematics and computer science in that area. However, the math that I encounter there is more along the lines of linear/abstract algebra and category theory. But again, when I worked as a software developer, I rarely, if ever, used any calculus.

7

u/editor_of_the_beast Dec 06 '22

At the very top math splits into continuous and discrete structures. Calculus is generally about continuous structures - there are no gaps between real numbers, you can have 1.001 or 1.0001, with infinite divisions. Lines are continuous structures, there are no gaps in a line.

Discrete structures on the other hand are things like sets, graphs, and trees. Almost everything in CS is representable as sets, graphs, and trees. In that area of math, everything is applicable to CS.

So ‘math’ is a huge field, and certain areas have no applicability to CS. Discrete math is very applicable to CS though.

6

u/aroman_ro Dec 06 '22 edited Dec 06 '22

Scientific Computing https://en.wikipedia.org/wiki/Computational_science. A quite important branch that covers a lot.

An important sub-domain is computational physics, where a lot of maths can be used.

I have some projects on that topic here: https://github.com/aromanro?tab=repositories since it's one of my hobbies. If I would have to point out one of them for the usage of maths, I could point out this one: https://github.com/aromanro/HartreeFock but there are plenty of other projects there that requires quite a bit of mathematics to understand and implement.

10

u/benfok Dec 06 '22

I will reference Bresenham's circle drawing algorithm as CS problem that is closely related to mathematics. It remains one of the most awesome and elegant algorithms I have ever seen.

5

u/AdjustedMold97 Dec 06 '22

You’re right in saying math and programming have little to do with each other. However, math and computer science are nearly one in the same. Once you take some “proofs” classes like theory of computing, you’ll see what I mean.

So calculus isn’t always directly applicable to CS, but I think the problem solving skills developed in math classes are crucial for progressing in CS.

9

u/stackered Dec 06 '22

CS is an expression of math much like physics

4

u/[deleted] Dec 06 '22 edited Dec 06 '22

When you're training for calculus for a cs major, an important mindset is that they're not meant to be applied quickly to your major, but to provide you with the necessary mental exercise and, as Spencer calls it, educational signalling. It may sound not that direct but, for example, if you show on your transcript that you don't have the ability to master some certain level of integrals, a future graduate school committee might question your ability to pursue research in specific sub-areas of computer science, specifically, communication theory, machine learning, and some graphics, which all require good senses of calculus. And, a wise choice is not to limit yourself from those sub-areas that require advanced calculus without a clear career path planned.

If you are interested in mathematics related to programming, then mathematical logic can be a motivator. In what is often called CS Theory B, it's all about algebra and logic, especially programming language theory that you may be interested in, which is inseparable from the formal mathematics of category theory and type theory. Note that usually we don't have to exclude the learning of a basic mathematical tool because of our particular interests considering there is a long way to go. Suppose that one wants to study model checking in the future, it will of course be about logic and logic first, but if you want to use this part of the knowledge to deal with some specific questions in the area, like which relate to continuous time POMDPs, the knowledge and proficiency in integrals would help.

3

u/[deleted] Dec 06 '22

I mean, it depends what you do with computer science. As a data scientist, I need a fundamental understanding of calculus for statistics and probability. As well, linear algebra was useful to me. Just focus on learning it to improve your brain and not to get something external.

3

u/Fabulous-Possible758 Dec 07 '22

You want the book "Concrete Mathematics" by Knuth, Graham, and Patashnik. The principles of calculus are used in some disciplines of computer science (especially machine learning, currently) but discrete math is where it's at if you want to get good at reasoning about the math you'll need for programming. That said, finish calculus.

In general, computers really only do math, and if you want to be effective at problem solving as a programmer you need to know the various ways people have come up with to translate their problems into mathematical language so that they can then solve them with a computer. You won't need every kind of math for every kind of programming problem but the more math you know the less you'll get hamstrung when difficult problems come along that are only phrased mathematically.

7

u/digital_dreams Dec 06 '22

You will probably never write code that computes integrals or derivatives... but that's not what matters.

What matters is knowing how to carefully calculate things, having an eye for correctness, turning unknowns into knowns... there is a very strong connection in the way you solve problems in math and computer science. The problems are different, but the "thinking" and problem solving approach is very similar.

You will notice that practicing math makes you a better coder.

2

u/LUKADIA89 Dec 06 '22

I am not expert but, as far as I know, if you see the roadmap to become Game Developer, you will see every topic of maths you mentioned above and many more of them.

I have also completed a year in Computer Engineering Major, so we know everyone hates maths lol.

2

u/dbel12 Dec 06 '22

To be honest, I am in my final year. A lot of the math we will use will be in data structures and algorithms where the course material is basically only going to be as intensive as algebra two. That said, when you look at research papers for topics like machine learning you will see integrals and derivatives. When you get into game development or making game engines you may deal with quaternions. In other words, for a lot of computer science you don’t need that much math, but there are topics which require some intense math.

2

u/victotronics Dec 06 '22

You're right about math & cryptography. You can also tie language/automata theory to compilers. Graph theory is very important in data analysis. Linear algebra (especially numerical) for deep learning. Discrete math for sorting/searching, see genomics.

Calculus? Nah. Not unless you go into scientific computing. Which is a tiny niche. It's mine, but I know it's tiny. And even then I would find algebra way more useful.

1

u/OddInstitute Dec 07 '22

Deep learning optimization works by taking the gradient (derivative generalized to higher dimensions) of those linear algebra expressions, so calculus is very, very relevant to that field as well.

2

u/LilQuasar Dec 06 '22

you need to consider that cs and programming are different things and that calculus is just one part of math

unless youre doing engineering or optimization you will probably not use calculus but you might use discrete maths (combinatorics, graph theory, number theory, etc). theoretical computer science works in a mathematical framework but thats kind of far from programming. i think the most common subject thats both is data structures and algorithms, algorithm complexity usually works with limits and other calculus ideas

if you want to find another motivation for calculus you probably want to find an engineering subject or something that needs optimization that you like and see how its used there. some subjects are signal and image processing and deep learning

2

u/[deleted] Dec 06 '22

Everything is a tool in the toolbox when it comes to CS. You’ll find that a lot of CS is taking real world tasks and automating them, making them significantly faster/more efficient, or just creating a digital experience unique from the real world.

Depending on what you want to build, you’ll need different tools. Building a physics engine or a 3D game engine? Calculus and linear algebra will help a ton. Looking to go into mobile app design? You’ll want to understand how people interact with machines. Want to dive deep into AI/ML and understand everything behind it? You’ll want to dive into some cognitive studies and math.

It all depends on what you want to do with CS. CS is massive. The application is what will determine what you need to know. There are a lot of applications that don’t need heavy math.

2

u/_limitless_ Dec 06 '22

Maybe this will help. The highest level of formal math I've had is trigonometry, but I've been working as a software engineer for a few decades.

In that time, I've come to learn more about graph theory and set theory than most people with a 4yr math degree. I can also read and write formal logic.

I can't solve an integral, and I really don't know what one is.

2

u/TheArchist Dec 06 '22

consider it this way: mathematics is the language you use to understand what goes in computer science, and in that entire field programming is just a part of it. you have so many applications in cs in which go into their purest forms if you know the math behind them.

it's a bit like what someone said below that cs is an expression of math, quite like physics is

2

u/___up Dec 06 '22

higher level stats/probability/machine learning all rely concepts from calculus to define probability distributions or for gradient descent, for example. You probably are using concepts from math in CS without realizing it. You should try to create functions to do what you are learning in math using CS. Also math is important to CS because sometimes closed form mathematical solutions are a lot faster than using an algorithm. Knowing math helps you not waste time and computational resources. Of course the applicability of math to your future depends on what your future is going to be.

2

u/Available_Musician_8 Dec 06 '22

You will find these very useful if you’re implementing software defined radio algorithms on processing chips… and those people make good money!

https://en.m.wikipedia.org/wiki/Software-defined_radio

2

u/du-dx Dec 07 '22

Often times I am using programming (not necessarily CS) to run physics problems in the form of math equations.

Being able to run differential equations in a programming simulation can allow you to i.e. progress a neuron's membrane potential (to run spiking neuron simulations), or progress a photon through a general relativity simulator.

This is probably the most math-intensive simulation that I did last year, https://physics.stackexchange.com/questions/679628/can-you-modify-the-surrounding-curvature-of-a-black-hole-while-keeping-the-schwa

4

u/wiltors42 Dec 06 '22

Discrete math is more relevant to computer science but it requires knowledge from calc 1 & 2 at least

9

u/fatgamornurd Dec 06 '22

Well I mean technically you can do discrete math with no prior knowledge of calculus.

1

u/wiltors42 Dec 06 '22

Most universities will have calculus as a prerequisite. And it helps to have some familiarity with set notation.

5

u/[deleted] Dec 06 '22

Most universities do NOT have calculus as a prereq to discrete math.

2

u/fatgamornurd Dec 06 '22

That is true. But the thing is its not a prerequisite because you need the material, they just wanna see you wanna have some maturity in math before entering the world of proofs.

3

u/LilQuasar Dec 06 '22

it doesnt require knowledge from calc 1 & 2, it might have them as prereqs because of "mathematical maturity" but you can do the same with linear algebra for example

1

u/Vanilla_mice Dec 06 '22

They are not related at all, what it requires is a basic understanding of algebra and proofs

4

u/OddInstitute Dec 07 '22

Calculus and discrete math have a pretty heavy overlap in e.g. generating functions. The core idea is to encode the values of a sequence of interest such as how many possible values there are in a data structure of a given size as the coefficients of a polynomial with a potentially-infinite number of terms. Then you can learn things about your sequence by messing around with that polynomial. While there are caveats, treating that polynomial as a continuous expression over a real or complex variable can often provide substantial insight into properties of the original sequence, even though the original sequence was from a discrete problem defined only over the integers.

1

u/Vanilla_mice Dec 07 '22

I did not know that. Thank you!

2

u/[deleted] Dec 06 '22

Calculus is used for for statistics and physics. You won't see that in programming unless it's a niche program for say robotics or a physics engine or something. Statistics however you'll encounter algorithms that use that in ur algo class likely. Statistics will also come back in ml if u enter that field. Multivariable calc also appears for certain types of ml aspects. But computer science is more than programming. It's analysis design a bit of engineering and more. It's a very large field in itself

2

u/ProofIndependent3529 Dec 06 '22

CS is garbage, it's too general and outdated. It is being tought by people who never wrote single line of code in their life

1

u/PerspectiveCrazy7014 Dec 07 '22

Imagine having to produce math equations that help build small programs, eventually leads to being able to read and write code for yourself

1

u/hotblack42 Dec 07 '22

Set a reminder to check this in 5 years and then 10 years and laugh at yourself. Learn as much f’ing math you can, I am extremely jealous of your skill and ability- I wish I would’ve been as far along in math as you at your age. Trust us, you will laugh thinking the way you are now. You will be a beast and be a 10x more capable programmer than a pleb like me. Sending you good vibes

1

u/LavenderDay3544 Jan 24 '23

There isn't much of a connection between calculus and computer science other than in certain application domains like scientific computing and AI. Most of the math involved in pure CS is discrete math.

1

u/DRIESASTER Sep 09 '23

have you started learning deep learning yet?

-3

u/PeksyTiger Dec 06 '22

Making people go through a cs degree just to get a programming job was a huge mistake on sociaty's part.

1

u/OlevTime Dec 06 '22

When? 20 years ago or today? It seems it's becoming more accessible for those without degrees because there are lot of new positions and languages that don't really require that level of knowledge. But was that always the case?

0

u/PeksyTiger Dec 06 '22

Both. There are more positions but at least where Im from, most of them want a degree and idk why. You really don't need most of this stuff for vast majority of programming jobs.

0

u/ccppurcell Dec 06 '22

I bet there are some ideas in calculus that are relevant in programming, especially when it comes to verification. But I don't know any off hand, and I understand the frustration of having to dig through a lot of other stuff that is irrelevant.

But other areas of mathematics are more useful - basic logic is absolutely paramount, for instance. Discrete mathematics provides all the data structures, and many examples for practising using them and coming up with algorithms (analysing the efficiency of algorithms is also useful). Topology is increasingly relevant to data science, but also to computer science (including programming), especially in connection to type theory. Finally, a really concrete connection is between functional programming and category theory. See this essay for some inspiration: https://the.scapegoat.dev/why-i-am-learning-category-theory-1/

0

u/windwaterwavessand Dec 06 '22

I dropped my calculus classes and switched majors to BA / MIS and make way more than CS majors, that was in 1986. Plus business classes had fridays off and $2 pitcher night on thursdays. I have built multiple POS systems, work order/customer management systems, deployed global computer networks, and own an ISP. Never used calculus, just a couple of gis conversions and had someone else do them.

1

u/HypaHypa_ Dec 07 '22

What was your first job out of college as an MIS grad?

1

u/windwaterwavessand Dec 07 '22

Independent contractor, i started a business, many of my classmates had jobs at microsoft, boeing etc. I started teaching and writing code while in community college, and just got the 4 year to say i had a ba, although i’ve never been asked about a degree, just experience. I spent 4 years flying around doing networking seminars of Novell as well. I know hardware, software, network engineering, business, accounting etc.

0

u/Gumdowl Dec 06 '22

Similar to how I realized the importance of trigonometry while taking higher level calc, I think you'll understand how calc is important/relates the further you go in CS. Imo, the biggest connection is the problem solving skills and strategy.

0

u/am0x Dec 06 '22

As a programmer who came out of a CS degree, you don't unless you are getting into 3D stuff for the most part. The math part is mostly discrete and finite math, rather than calc. Geometry could be useful as well.

For CS, I am not really sure. I never decided on a masters or applying theory...I just wanted to code. They didn't offer Software Engineering degrees back then though. The only option was CS.

0

u/GradientCollapse Dec 07 '22 edited Dec 07 '22

Computer science is a sub discipline of mathematics. Algorithms are a type of mathematical function. CS just focuses on the subset of mathematics that can be expressed with discrete logic (I.e digital computers). The theory of CS is entirely based in mathematics. Programming is more of a trade that applies CS principals much like accounting is a trade that applies base math principles.

With programming being so inherently math based and so many problems requiring mathematical understanding to solve, calculus becomes a very handy toolset to have under your belt. Calculus is essentially required (either implicitly or explicitly) in many CS problems that involve continuous values because digital computers can only use binary values.

-2

u/Purple-Raccoon8350 Dec 06 '22

Computer science is doing science with computers so your gonna use a lot of made up bullshit and theoretical math coding is coding

-8

u/Instigated- Dec 06 '22

Maths and CS are not “closely related”. Most of what you learn at school will not be closely related to your future career.

What is the value of what you learn at school?

  • you develop skills in learning/studying itself, which can be applied to learning new things. We have to keep learning things long after school.

  • topic areas have overlap with others which can make one a building block or fast track to learning the other. Maths is more relevant to CS than drama class.

  • if you want to do a university degree and it has prerequisites, then you have to do them whether you like it or not.

I don’t know if I ever learned whatever “calc3“ covers, it’s not keeping me up at night not knowing it, hasn’t stopped me from having a career as a software engineer. However presumably you are studying it for a reason (need it to get into university?).

7

u/fatgamornurd Dec 06 '22

Maths and CS are not “closely related”

That's just dead wrong. The father of computer science was Alan Turing, a phD in mathematics at Cambridge. To that same extent, the man who invented what people consider the first programmable machine was the lucasian professor of mathematics Charles Babbage. Additionally George Boole (the guy that boolean is named after) was a mathematician at queens College.

Computer science was not it's own topic separate from math until recently in our history. In fact, I have been to a community College where they still aren't separate topics.

Computability, algorithms, data structures, architecture, language theory are all just math.

-2

u/Instigated- Dec 06 '22

That’s like saying art and science are closely related, because Leonardo da Vinci was both an artist and a scientist, and let each influence the other in his work. This doesn’t mean all artists must be scientists, or scientists must be artists.

People can learn computer science without learning advanced mathematics, and people can learn mathematics without learning computer science.

3

u/OlevTime Dec 06 '22

Computer Science is math. That is their point. Programming isn't math, but computer science isn't programming.

You can't really learn computer science without learning math. Machine Learning? Math. Searcy algorithms? Math. Computation theory? Math. Data structures? Filled with math. Computer Graphics? Math.

If you strip the math from computer science, you're left with just coding, and that's not the same.

1

u/fatgamornurd Dec 06 '22 edited Dec 06 '22

People can learn computer science without learning advanced mathematics,

Where in the seven shits did you go to school where you never had to do a proof? Most people had to learn how to do proofs as early as lower division data structures. Don't you know what O(f) is? It's an upper bound of sequence. A function is g is O(f) if and only if it is the case there exists a real c so that for all n |f(n) |<= c|g(n)|. This is very much a topic from mathematical analysis.

And if there's any doubt that computer science isn't mathematical, just look at the 2 words that make it up. "Computer" which means calculator, and "science" which means mathematical models.

1

u/Instigated- Dec 06 '22

So you’re claiming that the whole field of science is a subfield of maths now?

Maths is one mental model for thinking and communicating about things. If you want to look at the world through a mathematical lens and claim everything is maths, you can see “maths” everywhere.

However, many of those same concepts can also be viewed and described through other mental models. It if ridiculous to claim that everything is a subfield of maths just because you are imposing that mental model on everything.

Fibonacci sequence is maths? So all the places in the world it exists (biology, geography, music, art) are all maths? Maths labels something from another field, which has existed before the concept of “maths” existed, so everything is maths?

At its base, modern computers run on silicon, electricity, metal. That is science, not maths. If it maths too, perhaps maths is a subfield of science rather than the other way round.

Their name remains “computers” because of their origin when they were only able to do some very basic computations. Now they do far more than computation. There are many subfields of computer science that people don’t need to know much maths for - which is what this question was about. The OP saying they were struggling with maths and weren’t sure how it would be directly relevant to a future CS career. Reality is, they can have a career in CS without having to be great at maths.

But go ahead, miss the point.

2

u/fatgamornurd Dec 06 '22

.... okay I think I understand where this confusion comes from.

Computer science is NOT programming. Programming is NOT computer science. Computer science is the mathematical model of computing. Key word "mathematical". Computer science covers things like the theory of programming languages, algorithms, data structures, operating systems, architecture, AI machine learning, and all kinds of shit like that.

Programming, is just commanding a computer.

You may be able to program without math. BUT YOU CANNOT do computer science without math because computer science is just applied math the same way physics is.

4

u/assemblrr Dec 06 '22

Incorrect. Computer science is a subfield of mathematics. It is the science of computation. You compute solutions to math problems.

AI, quantum computing, the study of algorithms, language and compiler design, automata...All math or math-adjacent heavy. The creation of things like WolframAlpha, MatLab, Mathematica all rely on mathematical knowledge.

Propositional logic which underpins boolean algebra which underpins all of computing is also the underpinning of mathematical logic and reasoning.

-2

u/Instigated- Dec 06 '22 edited Dec 06 '22

That’s like saying all the humanities are a subfield of English/literature, because they make use of the written word and all the syntax of adjectives, nouns, sentences, etc.

Just because computers use mathematics in their base code doesn’t mean all of computer science is a subfield of mathematics. CS is a big field now, and no it doesn’t all fit under “mathematics”.

And then there are concepts that repeat out across multiple disparate fields, they are not “owned” by any one. Logic, for example, also exists in philosophy, debate, essays, science, and so on.

1

u/fatgamornurd Dec 07 '22 edited Dec 07 '22

Just because computers use mathematics in their base code doesn’t mean all of computer science is a subfield of mathematics.

And this is the big indicator you don't know what you're talking about.

Here's a fun fact you would know if you went into university. Computer science.. is independent of computer machines. Computer science in fact came years before the machine existed. In fact some can argue computer science concepts existed thousands of years before as algorithms have been performed on paper in ancient Greece. If you went to a good school, hopefully Euclid's algorithm popped up in your algorithms topic at least once.

And then there are concepts that repeat out across multiple disparate fields, they are not “owned” by any one. Logic, for example, also exists in philosophy, debate, essays, science, and so on.

Yes but formal logic is math. And all disciplines of formal logic coincide one to one, in philosophy, math, and linguistics. Any good school offers them for equivalent credit. And I can tell you right now, all of comoutability theory is just a subtopic of mathematical logic.

But since you're so hellbent and proving computer science isn't a subset of math, why can't you even bring up one thing that's computerscience and not math?

2

u/Poddster Dec 06 '22 edited Dec 06 '22

I don't know what courses you took on your degree but mine we full of a wide variety of swiggly mathmatical symbols. Each topic seem to have its own set of mathmatics covering it. It was rare for a topic to have 0 maths what so ever.

And I'm not considering things like simple arithmetic to be maths.

edit:

If we look at the "fields" section on the wikipedia Computer Science article then the only categories without a bunch of Math either defining them or being completely integral are:

  • Compiler design (under the Programming language theory and formal methods section)

  • Most of the stuff under Computer systems section (ignoring the fact that all of the implementation is done via Digital Logic)

  • Social computing and human–computer interaction section

  • Computer networks section

  • Software engineering section

0

u/[deleted] Dec 06 '22

[deleted]

11

u/Poddster Dec 06 '22

The first model of a computer can be written in mathematical notation.

Can be written? Was written!

3

u/WikiSummarizerBot Dec 06 '22

Turing machine

A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algorithm. The machine operates on an infinite memory tape divided into discrete cells, each of which can hold a single symbol drawn from a finite set of symbols called the alphabet of the machine. It has a "head" that, at any point in the machine's operation, is positioned over one of these cells, and a "state" selected from a finite set of states.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

2

u/[deleted] Dec 06 '22

[removed] — view removed comment

1

u/WikiSummarizerBot Dec 06 '22

Lambda calculus

Lambda calculus (also written as λ-calculus) is a formal system in mathematical logic for expressing computation based on function abstraction and application using variable binding and substitution. It is a universal model of computation that can be used to simulate any Turing machine. It was introduced by the mathematician Alonzo Church in the 1930s as part of his research into the foundations of mathematics. Lambda calculus consists of constructing § lambda terms and performing § reduction operations on them.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5