Hi Sid, two points:
1.VectorSpaceBasis is not exposed, so interpreter cannot find its functions.
2. coordinatesIfCan requires as second argument a basis, i.e. an element of VectorSpaceBasis(F), not just a list of vectors.
Here is the corrected code:
(1) -> )r isBasis
)expose VectorSpaceBasis
VectorSpaceBasis is already explicitly exposed in frame
frame1
F ==> PF 11
Type: Void
VF ==> Vector F
Type: Void
(v1,v2,v3) : VF
Type: Void
v1 := [1,1,2]
(4) [1, 1, 2]
Type: Vector(PrimeField(11))
v2 := [2,1,2]
(5) [2, 1, 2]
Type: Vector(PrimeField(11))
v3 := [1,2,1]
(6) [1, 2, 1]
Type: Vector(PrimeField(11))
M : Matrix F := [v1,v2,v3]
+1 1 2+
| |
(7) |2 1 2|
| |
+1 2 1+
Type: Matrix(PrimeField(11))
rank M
(8) 3
Type: PositiveInteger
isBasis?([v1,v2,v3])
(9) true
Type: Boolean
w : VF := [2,3,10]
(10) [2, 3, 10]
Type: Vector(PrimeField(11))
b := basis [v1,v2,v3]
(11) VectorSpace [[1, 1, 2], [2, 1, 2], [1, 2, 1]]
Type: VectorSpaceBasis(PrimeField(11))
coordinatesIfCan(w,b)
(12) [8, 5, 6]
Type: Union(Vector(PrimeField(11)),...)
--
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 fricas-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/eb43990c-c999-476d-b81e-5888a43066dan%40googlegroups.com.
-- Mit freundlichen Grüßen Johannes Grabmeier Prof. Dr. Johannes Grabmeier, Köckstraße 1, D-94469 Deggendorf Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756 Fax: +49-(0)-991-2979592
e.g.:
(48) -> )sh VectorSpaceBasis
VectorSpaceBasis(R: Field) is a domain constructor
Abbreviation for VectorSpaceBasis is VSBASIS
This constructor is not exposed in this frame.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/d157f6a4-6e2c-4b35-a2e5-245b16ceca74n%40googlegroups.com.