axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] [Axiom-mail] vector


From: root
Subject: [Axiom-developer] [Axiom-mail] vector
Date: Tue, 25 Oct 2005 12:05:58 -0500

Changes http://page.axiom-developer.org/zope/mathaction/AxiomMail/diff
--
)clear all

-- make three vectors
u : VECTOR INT := new(5,12)
v : VECTOR INT := vector([1,2,3])
w : VECTOR INT := vector([2,3,4])
-- multiply them
cross(v,w)
-- dot product
dot(v,w)
-- ask for the length
#(v)
-- access an element
v.2
-- set an element
v.3 := 99
-- show the vector
v
-- multiply by a constant
5 * v
-- on either side
v * 7
-- add them
v + w
-- substract them
v - w
-- display all possible functions
)show Vector(Integer)



_______________________________________________
Axiom-mail mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/axiom-mail

--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]