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

fricas
(1) -> 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)
Type: NonNegativeInteger?
fricas
f 1000

\label{eq2}\verb#"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)
Type: NonNegativeInteger?
fricas
f 1000

\label{eq4}\verb#"Too long!"#(4)
Type: String

f(n)=2^n




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