MathAction #272 functions +-> and blocks of instructions



#272 functions +-> and blocks of instructions
last edited 11 years ago by test1

Submitted by : (unknown) at: 2007年11月17日T22:19:21-08:00 (18 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :
Optional comment :

fricas
(1) -> f x == 
 a := 3 
 x + a
Type: Void
fricas
f 3
fricas
Compiling function f with type PositiveInteger -> PositiveInteger
Type: PositiveInteger?
fricas
g := x +-> (x+2 ; x+a)
Type: AnonymousFunction?
fricas
g 3
Type: Polynomial(Integer)

are right functions. But I can't use the function h. I get an error - h 3 : |a| is not of type list

fricas
h := x +-> (a := 3 ; x+a)
Type: AnonymousFunction?
fricas
h 3
Type: PositiveInteger?

... --gdr, 2008年1月24日 21:23:23 -0800 reply
fixed in OpenAxiom

... --gdr, 2008年4月01日 03:20:27 -0700 reply
Status: open => fixed somewhere

... --test1, 2014年5月13日 17:20:50 +0000 reply
Status: fixed somewhere => closed




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

AltStyle によって変換されたページ (->オリジナル) /