[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.3668991 [View]
File: 44 KB, 787x523, 1310184223757.jpg [View same] [iqdb] [saucenao] [google]
[ERROR]

I'd like your help with a relatively simple problem, /sci/.
I have an initial number. After each second, the number increases by one
percent of the previous number.

For example, my initial value is 100 and at second #1, it's 101, and at second #2,
it's 102.01, and so on.

I'd like to know a relatively simple method of determining the number after
"n" seconds. My current knowledge would require that I manually calculate
every previous value.

Thanks!

inb4 faggot,underage, troll, etc.

>> No.1783817 [View]
File: 44 KB, 787x523, 1256113119955.jpg [View same] [iqdb] [saucenao] [google]
1783817

Try compiling with strict IEEE flags. Sometimes your compiler will have --fast-math (or whatever the equivalent is) turned on by default, or as part of a -Ox optimization, because it's very rare that anyone needs that kind of precision. If you use strict IEEE, it might force the machine to evaluate the function more rigorously.

Navigation
View posts[+24][+48][+96]