File:  [parser3project] / parser3 / tests / 038.html
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Sat Dec 30 01:35:10 2023 UTC (2 years, 5 months ago) by moko
Branches: MAIN
CVS tags: HEAD
test for atan2 added

$1(^math:radians(180))
$2($math:PI)
^if(^1.format[%.10f]==^2.format[%.10f]){y;n}
^if($1==$2){y;n}
^if(^math:radians(180)==$math:PI){y;n}

<hr />
^eval($math:PI)[%.4f]<br />
^^math:radians(180): ^eval(^math:radians(180))[%.4f]<br />
^^math:degrees(^$math:PI/2): ^eval(^math:degrees($math:PI/2))[%d]<br />
^^math:sin(^$math:PI/2): ^eval(^math:sin($math:PI/2))[%.2f]<br />
^^math:asin(-1): ^eval(^math:asin(-1))[%.2f]<br />
^^math:cos(^$math:PI): ^eval(^math:cos($math:PI))[%.2f]<br />
^^math:acos(0): ^eval(^math:acos(0))[%.2f]<br />
^^math:tan(^$math:PI/4): ^eval(^math:tan($math:PI/4))[%.2f]<br />
^^math:atan(-1): ^eval(^math:atan(-1))[%.2f]<br />
^^math:atan2(-1;0): ^eval(^math:atan2(-1;0))<br />

E-mail: