Sometimes it makes sense to say

)type on

in order to see what the interpreter makes out of your input.

Obviously, returning a symbol is not what you want, i.e. the function selection goes not the way you hope for.

%%% (10) -> isBasis?([v1,v2,v3])

   (10)  isBasis?
                 1, 2, 1
                                                 Type: Symbol

You can check what the interpreter tries to select via

   )set message bottom on

Cllearly, helping the interpreter a little by package calling the right function, solves your problem.

%%% (11) -> isBasis?([v1,v2,v3])$VectorSpaceBasis(F)

   (11)  true
                                                 Type: Boolean

%%% (14) -> coordinatesIfCan(w,basis [v1,v2,v3])$VectorSpaceBasis(F)

   (14)  [8, 5, 6]
                        Type: Union(Vector(PrimeField(11)),...)

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/143d6359-7ab6-44da-b0c4-0ed767e2d238%40hemmecke.org.

Reply via email to