lcm? gives the following output:
Type: function
Base Class: <type 'function'>
String Form: <function lcm at 0x879087c>
Namespace: Interactive
File: /home/michael/downloads/sage-3.0/local/lib/python2.5/
site-packages/sage/rings/arith.py
Definition: lcm(a, b=None, integer=False)
Docstring:
The least common multiple of a and b, or if a is a list and b
is
omitted the least common multiple of all elements of a.
NOTE: Use integer=True to make this vastly faster if you are
working with lists of integers.
INPUT:
a -- number
b -- number (optional)
integer -- (default: False); if True, do an integer LCM
or
* a -- vector
integer -- (default: False); if True, do an integer LCM
NOTE -- this is *vastly* faster than doing the generic
LCM
Note the starred line. I believe that the lcm method takes a list and
not a vector. At least, I seem to get errors when I pass a vector.
--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---