Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: The problem of getting the unit vector "Undefined subroutine &main::Normalize"

by GrandFather (Saint)
on Aug 30, 2017 at 01:16 UTC ( [id://1198316]=note: print w/replies, xml ) Need Help??


in reply to The problem of getting the unit vector "Undefined subroutine &main::Normalize"

A couple of minor coding related comments:

for (my $frame = 201; $frame <= 300; $frame++)

is better written:

for my $frame (201 .. 300)

Perl treats $a and $b as somewhat special variables (see sort) so it's usually best to avoid them unless the sort context version of the variables is what you really mean.

Premature optimization is the root of all job security

Replies are listed 'Best First'.
Re^2: The problem of getting the unit vector "Undefined subroutine &main::Normalize"
by windcrazy86 (Novice) on Aug 30, 2017 at 23:12 UTC

    Thanks! I will try that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found