Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick programming question
#5
Sorry. I didn't really understand that article. Here are the tables:


FormatBarsPixelsTotal
A/B206166
AB^-1282226



FormatBarsPixelsTotal
1/B, when B=1150120
B^-1, when B=1141113
1/B, when B=pi202162
B^-1, when B=pi192154


How come in the first table, ^-1 worked really slowly, but in the second, it worked faster? I thought in a complex equation, the program groups each portion as a separate entity. How else would it account for operations grouped together with parentheses, like in the following example:

A(X+Y)^-1

Also, it's probably not the case, but what if A=1 in the first table?
Reply


Messages In This Thread
Quick programming question - by 2147483647 - 2010-08-15, 11:24 PM
Quick programming question - by Eos - 2010-08-15, 11:28 PM
Quick programming question - by 2147483647 - 2010-08-15, 11:36 PM
Quick programming question - by singularity - 2010-08-16, 05:42 AM
Quick programming question - by 2147483647 - 2010-08-16, 05:52 AM
Quick programming question - by singularity - 2010-08-16, 07:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)