"Liu Xiaojun" <[EMAIL PROTECTED]> writes:

> Here is the code:

> (1) -> R := SQMATRIX( 2 , INT )

> (2) -> y :R := matrix[[1,0],[1,1]]

> (3) -> delta(r:R):R == y*r - r*y

> (4) -> S := OREUP('x, R, 1, delta)
> 
>    >> System error:
>    The function MAP is undefined.

As I said, this is a bug.  However, here is a workaround:

R := SQMATRIX(2, INT)
y: R := matrix[[1,0],[1,1]]
delta: R -> R := r +-> y*r - r*y
S := OREUP('x, R, 1, delta)

I think the problem is that the types are wrong:

(3) -> delta: R -> R := r +-> y*r - r*y

   (3)  theMap(*1;anonymousFunction;0;frame0;internal)
                   Type: (SquareMatrix(2,Integer) -> SquareMatrix(2,Integer))
(4) -> delta2(r: R): R == y*r - r*y
   Function declaration delta2 : SquareMatrix(2,Integer) -> 
      SquareMatrix(2,Integer) has been added to workspace.
                                                                   Type: Void

Martin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to