Does C++ really need that much math?

-Kavity

Printable View

- 02-19-2002KavityMath?
Does C++ really need that much math?

-Kavity - 02-19-2002Govtcheez
Depends on what you want to do.

Printing hello world doesn't require much math on your part, but making a game or something will. - 02-19-2002Paro
knowing math is helpful :D

- 02-20-2002Shiro
As Govtcheez said: it depends on what you want to do. C++ is a programming language and a programming language is used to construct software. This software is used to perform operations, for example controlling a stepping motor, digital filtering of signals, compute primes, maintain a database, to make nice drawings, etc. etc. Depending on the type of application you'll need some math.

In some cases you not only need math to perform the desired operations, but also need math to construct software. Using math you can derive algorithms or proof the correctness of algorithms. - 02-20-2002Korn1699
C++ can be really fast for doing math...

For example I have a program that I was able to find the first 10,000,000 prime numbers in like 7-8 hours with my 933 mhz computer. I still need another program just to read the file though cause 100 - 200 MB in size. - 02-20-2002SorensenQuote:

C++ can be really fast for doing math...

For example I have a program that I was able to find the first 10,000,000 prime numbers in like 7-8 hours with my 933 mhz computer.

http://www.utm.edu/research/primes/p...s/Eratosthenes - 02-26-2002KavityThanks for the replys :)
heh, thanks, I've read a few books and learned alot, I'm just staarting WinAPI programming, and Dos Game programming(hehehe). And I haven't had to use much math yet. But I was curious about it. Thanks alot for the replys :)

-Kavity