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

math programming

Name: Anonymous 2011-02-03 11:44

math programming in sepples is rather complicated to the point that books are written on the subject. first there is the factor of limited precision of types, like how much a double or long double can hold. so is it preferable to use dynamic programming languages like Python and Perl that dont have any limit on length of floating point precision? and is it true that twos compliment creates gaps in the number line? do calculators use twos compliment? I noticed some high end calculators use the old Z80 or 6502 CPUs, but is there added arithmetic circuitry or can you rely on these standard CPUs to provide sufficient math processing?

Name: >>1 2011-02-03 13:05

>>7
I don't know what you mean by "special math circuitry".
If you mean that some CPUs provide specialized instructions for more efficiently performing math, then yes, moth CPUs do indeed have such instructions. If you think that CPUs NEED "special math circuitry", you're severly mistaken, as one of the consequences of turing competeness is that general purpose CPUs will all be able to perform the same calculations (yes, even single-instruction CPUs). If you think that CPUs have special circuitry for dealing with "true real numbers", you're also mistaken as real numbers don't exist physically and our physical world is most likely discrete (with the smallest unit of length being the plank length, and the time a transition/step takes is the plank time), thus actually building hardware to calculate with "real numbers" is impossible (although using analog hardware for computations when noise can be tolerated is okay).


You'll really have to clarify your question >>1

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