Mathmatical pol function

By XpLoiTeR on Jan 10, 2006

Math Pol Function in some code......its like the pol function on the calc ; the function gets the square root of the sum of the squares of 2 values...example
/pol 3 4 gives 5
used usually in right angled triangles calculation....has other usage,,,its quite easy n simple..
note: it has no error fixin becz its for mathmatical use....no one use except he knows what it did

alias pol {
  echo -a The Result Is ---> Pol( $+ $1 $+ , $+ $2 $+ ) =12 $sqrt($calc($calc($1 * $1) + $calc($2 * $2)))
}

Comments

Sign in to comment.
XpLoiTeR   -  Jan 10, 2006

thanks quickstep...i think that will help me...ive told ya .. ive never used math on that language

 Respond  
QuickStep   -  Jan 10, 2006

you dont have to use $calc inside the $calc function, so one time $calc should be sufficient, just use brackets

 Respond  
XpLoiTeR   -  Jan 10, 2006

i know its easy..its my first time to use mathmatical identifiers.....it has no error fixin its just a good idea
note: if any one knows the identifier to check on that the value is number like VAL(text) in visual basic.....he can tell me.. thx :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.