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

Home » Public Forums » archive » Re: 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
Re: Friday Afternoon Puzzler [message #66837 is a reply to message #66834] Fri, 12 June 2009 14:23 Go to previous messageGo to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Paolo" <pgrigis@gmail.com> wrote in message
news:45fda197-6ddf-43c4-afe3-46d4bd1d4047@d38g2000prn.google groups.com...
>
>
> David Fanning wrote:
>> Folks,
...
>> 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.
>
> I'd argue that you are multiplying curly bi pi and dividing the result
> by 180
> in the first line, and dividing pi by 180 first and multiplying larry
> by the result
> in the second line.


oddly:

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]
schemp =[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]
curlyjoe=[-1.912,-1.852,-1.386,-0.818,-0.343,-0.343,-1.233]

curly = curly*!PI/180.
larry *= !PI
larry /= 180.

curlyjoe /= 180.
curlyjoe *= !PI

schemp *= !PI
schemp *= 1./180.

diff=curly-larry
diff2=curly-schemp
diff3=curly-curlyjoe

print,diff
print,diff2
print,diff3

IDL> .GO

0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

0.000000 0.000000 1.86265e-009 9.31323e-010 4.65661e-010 4.65661e-010
1.86265e-009

0.000000 0.000000 1.86265e-009-9.31323e-010 0.000000 0.000000 0.000000
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Checking version number
Next Topic: 4 byte integers

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

Current Time: Sun Nov 30 04:24:57 PST 2025

Total time taken to generate the page: 0.17129 seconds