Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Math::Vector - request for comments

by count0 (Friar)
on Dec 17, 2001 at 09:24 UTC ( #132476=note: print w/ replies, xml ) Need Help??


in reply to Re: Math::Vector - request for comments
in thread Math::Vector - request for comments

Floating point numbers should be compared in terms of a small tolerance.
That is a wonderful point! Many thanks. I have been so used to Perl taking care of the nitty gritty numeric stuff, that I didn't even think of that.

An implementation in terms of atan2 would be better...
I had originally used atan2(), simply for the lack of an inverse-cosine function.. until I was pointed to Math::Trig and told to use it ;) So i just haphazardly switched, never considering accuracy issues.

Thanks a lot for the pointers. They're greatly appreciated =)


Comment on Re: Re: Math::Vector - request for comments

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-04 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls