Arithmetic/Complex: Difference between revisions
Content added Content deleted
(added factor example) |
|||
Line 606: | Line 606: | ||
r = -1.0;} |
r = -1.0;} |
||
</lang> |
</lang> |
||
=={{header|Factor}}== |
|||
<lang factor>C{ 1 2 } C{ 0.9 -2.78 } { |
|||
[ + . ] |
|||
[ - . ] |
|||
[ * . ] |
|||
[ / . ] |
|||
[ ^ . ] |
|||
[ drop sin . ] |
|||
[ drop log . ] |
|||
[ drop sqrt . ] |
|||
} 2cleave</lang> |
|||
=={{header|Forth}}== |
=={{header|Forth}}== |
||
{{libheader|Forth Scientific Library}} |
{{libheader|Forth Scientific Library}} |