Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A question

Name: Anonymous 2007-11-27 19:08

Hey /prog/, i have a question, why do programmers need to know a lot of maths, calculus and lineal algebra?

Name: Anonymous 2007-11-27 19:15

They don't. But studying these subjects reshapes your brain to better reason about computers.

Name: Anonymous 2007-11-27 19:38

>>1
Helps with algorithms.
Read SICP (no, seriously) and you'll see what i mean.
For example an algorithm that runs in θ(1) in space (that means it runs in constant space) and θ(n) in time is better than an algorithm that grows in space as n itself.

Example of a factorial (meh, factorials again?!)


; runs in constant space, θ(n) time
; http://mitpress.mit.edu/sicp/full-text/book/ch1-Z-G-10.gif
(define (f n) (define (f-iter x n) (if (= n 0) x (f-iter (* x n) (- n 1)))) (f-iter 1 n))

; runs in θ(n) time, grows in space as n itself
; http://mitpress.mit.edu/sicp/full-text/book/ch1-Z-G-7.gif
(define (f n) (if (= n 0) 1 (* n (f (- n 1)))))


Ofcourse a factorial is very simple and used only for you to understand the concepts.
More complex algorithms require better understanding of mathematical concepts.

Name: Anonymous 2007-11-27 20:42

All right, thx :)

Name: Anonymous 2007-11-28 2:26

Math doesn't help you write code.  Math can help you analyze code and figure out what you want to write in the first place.

Matrix math and trig are crucially important in graphics and simulations.

You will never implement calculus (the study of continuous values) in software.  All computing approaches tend to be iterative, which brings about its own field of study.

Name: Anonymous 2007-11-28 2:40

>>5 You will never implement calculus (the study of continuous values) in software.
How do you figure?

Name: Anonymous 2007-11-28 3:20

>>6
When is the last time you solved a continuous function in software?  That would usually imply symbolic manipulation.  Unless you're writing something like MathCAD or a graphing calculator OS, you'll never actually implement it.  Everything is generally done step-wise, calculating deltas and accumulating totals per whatever epsilon is suitable for resolution and responsiveness.

Name: Anonymous 2007-11-28 3:57

>>1
os they are maths, calculus and lineal algebra knowing faggots

Name: Anonymous 2007-11-28 5:17

Mathematics is the difference between a computer scientist and a code monkey "software engineer".

Name: Anonymous 2007-11-28 5:42

Hay guise how do I learned math if I slept in every high school math class?

Name: Anonymous 2007-11-28 6:32

>>10
You don't.  An hero time.

Name: Anonymous 2007-11-28 8:01

>>11
fail
>>10
Get some books and start learning, like you learn programming.

Name: Anonymous 2007-11-28 8:23

SICP explained all the math to me.

Name: Anonymous 2007-11-28 8:23

>>10

how do I learned math

Even though you are talking like an idiot on purpose, your question deserves some merit.

To lean math basically just

Name: Anonymous 2007-11-28 10:26

Fatal error! Message could not be posted.

Please post threads less often!

Name: Anonymous 2009-03-18 2:29

Don't call me gay, but I need some mary jay!

Marijuana MUST be legalized.

Name: Trollbot9000 2009-07-01 8:29


you'll give them a.

Name: Anonymous 2009-08-16 17:16

study before attending university assignments projecteuler shitty an C not yet I M There are on t removefirst addlast removelast addfirst removefirst addlast removelast addfirst removefirst

Name: Anonymous 2010-11-26 14:51


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List