[sage-support] [ANN] new release 0.38 of OpenOpt, FuncDesigner, SpaceFuncs, DerApproximator

2012-03-15 Thread dmitrey
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

[sage-support] How to test if something is integer ?

2012-03-15 Thread Laurent
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

[sage-support] Re: How to test if something is integer ?

2012-03-15 Thread Simon King
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

[sage-support] Non-commutative ring over a field with generators

2012-03-15 Thread Noud Aldenhoven
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,

Re: [sage-support] Re: How to test if something is integer ?

2012-03-15 Thread Laurent
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

[sage-support] Re: Non-commutative ring over a field with generators

2012-03-15 Thread Simon King
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

[sage-support] changing default precision of real field

2012-03-15 Thread Daniel Krenn
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

Re: [sage-support] changing default precision of real field

2012-03-15 Thread William Stein
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 =

[sage-support] Re: changing default precision of real field

2012-03-15 Thread Jason Grout
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

[sage-support] Re: How to test if something is integer ?

2012-03-15 Thread John Cremona
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

Re: [sage-support] Re: How to test if something is integer ?

2012-03-15 Thread Laurent
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

Re: [sage-support] Re: How to test if something is integer ?

2012-03-15 Thread Robert Bradshaw
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

Re: [sage-support] Re: How to test if something is integer ?

2012-03-15 Thread Laurent
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

Re: [sage-support] About the solve function

2012-03-15 Thread Eric Kangas
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 =

[sage-support] Vehicle routing problems in sage

2012-03-15 Thread Chris Kees
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