TropNul commented on a Page, Equation Solver - $solve  -  Dec 23, 2007

There you are.

1> supports negative numbers inside the trigonometric functions, like sin(-30) for example.
2> calculates directly the contents of the argument of the trigonometric function (still not using $stript).

alias parser {
  return $regsubex($1-,/((sin|asin|acos|atan|cos|tan|log|sqrt)\\\\050(-?\\\\d+(?:\\\\.\\\\d+)?)\\\\051)/gx,$($\\\\2($calc(\\\\3)) $+ .deg,2))
}

Cordialement :o)

 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.