[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] [#122 Handling of power series] With binary infix oper
From: |
anonymous |
Subject: |
[Axiom-developer] [#122 Handling of power series] With binary infix operator in expansion point, transform it to fortran in type |
Date: |
Sun, 20 Mar 2005 14:22:28 -0600 |
Changes
http://page.axiom-developer.org/zope/mathaction/122HandlingOfPowerSeries/diff
--
\begin{axiom}
series(sin(x))
series(sin(x),x=pi/2)
series(sin(x),x=%e)
series(sin(x),x=%e+3)
series(sin(x),x=%i+7
\end{axiom}
<pre>
file: format.boot.pamphlet
Infix Binary Operator: "=" "+" "-" "*" "/" "**" "^" (i-output.boot.pamphlet =>
function isBinaryInfix)
function: form2String1 call fortexp0
isBinaryInfix op => fortexp0 [op,:argl]
----------------------------------------
In fortPre1 (file:newfort.boot.pamphlet)
fortPre1 e ==
-- replace spad function names by Fortran equivalents
-- where appropriate, replace integers by floats
-- extract complex numbers
-- replace powers of %e by calls to EXP
-- replace x**2 by x*x etc.
-- replace ROOT by either SQRT or **(1./ ... )
-- replace N-ary by binary functions
-- strip the '%' character off objects like %pi etc..
</pre>
--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden