comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Friday Afternoon Puzzler
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Friday Afternoon Puzzler [message #66841] Fri, 12 June 2009 13:51
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

If you've already had a beer, you may want to work
on this one. Should we be concerned? Or is this just
one more example for the Sky is Falling article?
I've voiced my opinion, but it didn't satisfy the
complainant. What say you?

curly=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
larry=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
curly = curly*!PI/180.
larry *= !PI/180.
diff=curly-larry
print,diff

curly=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
larry=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
curly = curly*!PI/180.
larry = larry*!PI/180.
diff=curly-larry
print,diff

curly=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
larry=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
curly *= !PI/180.
larry *= !PI/180.
diff=curly-larry
print,diff

The results:

-3.72529e-009 0.000000 0.000000-9.31323e-010 0.000000
0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000
0.000000 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000


Why aren't the first set of differences (where the assignment
is made with the *= operator) *exactly* zero?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: What does SET_PLOT, 'x' mean ?
Next Topic: Checking version number

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 18:07:50 PDT 2025

Total time taken to generate the page: 1.44244 seconds