Hi all,
I'm glad to inform you about new release 0.38 (2012-March-15):
OpenOpt:
interalg can handle discrete variables
interalg can handle multiobjective problems (MOP)
interalg can handle problems with parameters fixedVars/freeVars
Many interalg improvements and some bugfixes
Hi all
Why does 'sage.rings.integer.Integer' not have is_integer method ??
sage: A=4
sage: A.is
A.is_idempotent A.is_nilpotent A.is_perfect_power A.is_prime
A.is_square A.is_zero
A.is_integral A.is_norm A.is_power
A.is_prime_powerA.is_squarefree
Hi Laurent,
On 15 Mrz., 12:30, Laurent moky.m...@gmail.com wrote:
In order to test of something is integer, is it safe to use isinstance ?
isinstance(A,sage.rings.integer.Integer)
There is a (deprecated) function is_Integer, that does exactly the
isinstance test. Whether it is safe or not
Hello Sage-support,
Is it possible to make a non-commutative ring over QQ with three
generators x, y and z in Sage? So is it possible to make some sort of
polynomial ring Q[x, y, z] with the extra properties that xy /= yx, xz
/= zx and yz /= zy?
Best regards,
Noud
--
To post to this group,
3.
If, in your application, it is enough to know whether the given object
x is equal to an integer, then you could do x in ZZ. Note that this
property has nothing to do with the type!
CONCLUSION:
We already have four different meanings of the question Is x an
integer?. Since different
Hi Noud!
On 15 Mrz., 13:28, Noud Aldenhoven noud.aldenho...@gmail.com wrote:
Is it possible to make a non-commutative ring over QQ with three
generators x, y and z in Sage? So is it possible to make some sort of
polynomial ring Q[x, y, z] with the extra properties that xy /= yx, xz
/= zx and
How do I change the default precision used? E.g. I want to enter {{{a
= 1.2}}} and want that a is an element of RealField(100) without
explicitly telling to use that field each time.
What does not work is:
sage: RR = RealField(100)
sage: a = 1.2
sage: a.parent()
Real Field with 53 bits of
On Thu, Mar 15, 2012 at 6:53 AM, Daniel Krenn kr...@aon.at wrote:
How do I change the default precision used? E.g. I want to enter {{{a
= 1.2}}} and want that a is an element of RealField(100) without
explicitly telling to use that field each time.
What does not work is:
sage: RR =
On 3/15/12 9:05 AM, William Stein wrote:
On Thu, Mar 15, 2012 at 6:53 AM, Daniel Krennkr...@aon.at wrote:
How do I change the default precision used? E.g. I want to enter {{{a
= 1.2}}} and want that a is an element of RealField(100) without
explicitly telling to use that field each time.
What
Laurent,
I your question you gave an example where you set A=4, after which A
has the type Integer:
sage: A=4
sage: type(A)
type 'sage.rings.integer.Integer'
and it would not make very much sense to provide a method for this
class to test for integrality, since every such element is an Integer
and it would not make very much sense to provide a method for this
class to test for integrality, since every such element is an Integer
by definition. I suspect that in your intended application, A will be
the result of come computation resulting in a real number, and you
want to test whether
On Thu, Mar 15, 2012 at 8:48 AM, Laurent moky.m...@gmail.com wrote:
and it would not make very much sense to provide a method for this
class to test for integrality, since every such element is an Integer
by definition. I suspect that in your intended application, A will be
the result of
You'd want to make sure this behavior is well documented, otherwise it
could have unexpected behavior (e.g. what happens if you try to plot
it? Is 10.5 treated as a degree or radian?)
I'll be prudent since I am the user. It is not intended to be plotted.
What I'm doing is a class Angle that
I am able to manipulate the functions, but I am unable to plot them.
Here is the code:
a,l,x,y,u,v,xdot,ydot,udot,vdot = var('a,l,x,y,u,v,xdot,ydot,udot,vdot',
domain = RR)
i = var('i', domain = QQ)
xdot = x;
ydot = y;
udot = u^2+v;
vdot = v^2+u;
N =
Hi,
Does anyone know of research being done in sage on combinatorial
optimization like the traveling salesman and vehicle routing problems?
Thanks,
Chris
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
15 matches
Mail list logo