MathAction #274 Can't get a parameter in an anonymous function



#274 Can't get a parameter in an anonymous function
last edited 10 years ago by test1

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

There is still problem with handling closures, but this problem is fixed.

Theses functions are right :

Need to set:

fricas
(1) -> )set function compile on

fricas
methodea a == select (t +-> t=3, expand (-10..2*a))
Type: Void
fricas
methodea 10
fricas
Compiling function methodea with type PositiveInteger -> List(
 Integer)
Type: List(Integer)
fricas
methodeb a == select (t +-> t=a, expand (-10..20))
Type: Void
fricas
methodeb 10
fricas
Compiling function methodeb with type PositiveInteger -> List(
 Integer)
Type: List(Integer)
fricas
methode1 := a +-> select (t +-> t=3, expand (-10..2*a))
Type: AnonymousFunction?
fricas
methode1 10
Type: List(Integer)

This last function gives me a System error : The variable #:G30... is unbound. I think that the cause is the test a=t

fricas
methode2 := a +-> select (t +-> t=a, expand (-10..20))
Type: AnonymousFunction?
fricas
methode2 10
Type: List(Integer)

more information --kratt6, 2009年1月13日 04:35:00 -0800 reply
See

http://groups.google.at/group/fricas-devel/browse_thread/thread/93331582de7cfd31

for more information

... --test1, 2015年2月12日 16:26:03 +0000 reply
Status: open => closed




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

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