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

fricas
f(n)==
 local length
 length:=#((2^n)::String)
 if length>120 then
   "Too long!"
 else length
Type: Void

fricas
f 100
fricas
Compiling function f with type PositiveInteger -> Any

\label{eq1}31(1)
fricas
f 1000

\label{eq2}\mbox{\tt "Too long!"}(2)
Type: String

fricas
f(n) == (local length; length := #((2^n)::String); if length>120 then "Too long!" else length)
Compiled code for f has been cleared. 1 old definition(s) deleted for function or rule f
Type: Void
fricas
f 100
fricas
Compiling function f with type PositiveInteger -> Any

\label{eq3}31(3)
fricas
f 1000

\label{eq4}\mbox{\tt "Too long!"}(4)
Type: String

f(n)=2^n




  Subject:   Be Bold !!
  ( 13 subscribers )  
Please rate this page: