login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandBox kaveh revision 1 of 2

1 2
Editor:
Time: 2007/11/18 18:05:32 GMT-8
Note: experiment

changed:
-
\begin{axiom}


-- m:(FLOAT,FLOAT,INT) -> FLOAT
m(L, r, n) ==  
  r := 1 + ( r / 12)
  ss := eval( series(1/(1-'r)), r)
  s0_n_1 := ss.(n-1)
  result := (L * (r ** n))  / (1 + (r * s0_n_1 ))

m( 240000, 0.055, 300)

m( 240000, 0.05367, 300)

--  L := 240000
--  r := 1 + (.055 / 12)
--  n := 300

\end{axiom}

axiom
-- m:(FLOAT,FLOAT,INT) -> FLOAT
m(L, r, n) ==
  r := 1 + ( r / 12)
  ss := eval( series(1/(1-'r)), r)
  s0_n_1 := ss.(n-1)
  result := (L * (r ** n))  / (1 + (r * s0_n_1 ))
Type: Void
axiom
m( 240000, 0.055, 300)
There are 11 exposed and 4 unexposed library operations named eval having 2 argument(s) but none was determined to be applicable. Use HyperDoc Browse, or issue )display op eval to learn more about the available operations. Perhaps package-calling the operation or using coercions on the arguments will allow you to apply the operation. Cannot find a definition or applicable library operation named eval with argument type(s) Any Float
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. FriCAS will attempt to step through and interpret the code.

\label{eq1}1473.8099814755285914(1)
Type: Expression(Float)
axiom
m( 240000, 0.05367, 300)

\label{eq2}1454.8085767520394177(2)
Type: Expression(Float)