Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in. #26 2009-08-14 20:59:01
Re: Sum of fractions which equals 1
Ah - found it! I'd never used that key before and must have skimmed over it when looking for it. "The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson #27 2009-08-15 11:29:46
Re: Sum of fractions which equals 1Hi phrontister;
Code:for n=10 to 0 step -1/5 print n next n Notice how instead of getting 0 he gets 0.20539126e-14, but at least the for next loop terminates. Last edited by bobbym (2009-08-15 11:30:06) In mathematics, you don't understand things. You just get used to them. Probability is the most important concept in modern science, especially as nobody has the slightest notion what it means. 90% of mathematicians do not understand 90% of currently published mathematics. #28 2009-08-15 11:37:00
Re: Sum of fractions which equals 1Hi Bobby,
Yes - I'll have to remember that for situations where that is important (or maybe I should make it a habit anyway). "The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson #29 2009-08-15 11:49:16
Re: Sum of fractions which equals 1Hi phrontister; In mathematics, you don't understand things. You just get used to them. Probability is the most important concept in modern science, especially as nobody has the slightest notion what it means. 90% of mathematicians do not understand 90% of currently published mathematics. |