[sage-support] Re: logical connectives on integers

2011-03-01 Thread Jason Grout
On 3/1/11 11:53 PM, pong wrote: Logical connectives operates on integers, so things like n& m, n | m (n,m integers) always produce an answer. e.g. -2& 10 = 10 , -2& -3 =4, 2& 4 =0 I wonder what they mean? I failed to find the answer by a few quick searches. See http://docs.python.org/libr

[sage-support] logical connectives on integers

2011-03-01 Thread pong
Logical connectives operates on integers, so things like n & m, n | m (n,m integers) always produce an answer. e.g. -2 & 10 = 10 , -2 & -3 =4, 2 & 4 =0 I wonder what they mean? I failed to find the answer by a few quick searches. Thanks in advance -- To post to this group, send email to sage-s

[sage-support] How to enter DJIA quotron into sage.finance.stock?

2011-03-01 Thread lutusp
I just discovered sage.finance.stock, it looks very interesting. I tried to enter a quotron for the Dow-Jones average (for purposes of comparison with different specific stocks), but it seems the class won't accept any symbols I can locate for this entity. In experiments after drilling down int

[sage-support] Re: Checking for convexity of Lattice Polytopes

2011-03-01 Thread Volker Braun
On Tuesday, March 1, 2011 9:55:01 PM UTC, Ursula Whitcher wrote: > > This won't always work. > I agree with your example, of course. But I interpreted Dmitri's question somewhat differently, that he wants to start with some set of lattice points and find out if they all lattice points of the co

[sage-support] Re: Checking for convexity of Lattice Polytopes

2011-03-01 Thread Ursula Whitcher
On Feb 24, 10:57 am, Volker Braun wrote: > On Thursday, February 24, 2011 6:29:11 PM UTC, Dmitri wrote: > > > I think my problem is actually doing the comparison. So I have this > > chosen set of points which I don't know is convex. I compute its > > convex hull. Now how do I compare these two obj

[sage-support] Re: New to sage: significant digits, etc.

2011-03-01 Thread sm123123
No. I use matlab extensively for data analysis and have a large library of code already written in matlab. I do not want to invest the time required in porting all that. On Mar 1, 12:16 pm, Maxim wrote: > I'm affraid I cannot help you on the Matlab front (I don't have it > installed), but have

[sage-support] Re: New to sage: significant digits, etc.

2011-03-01 Thread Maxim
I'm affraid I cannot help you on the Matlab front (I don't have it installed), but have you considered using pyplot (from matplotlib)? It's basically a clone of the Matlab plotting framework. I've used it recently to make a semilog plot with excellent results. On 1 mar, 12:57, sm123123 wrote: > S

Re: [sage-support] Re: New to sage: significant digits, etc.

2011-03-01 Thread David Kirkby
On 1 March 2011 17:57, sm123123 wrote: > Sigh. > > When I issue a plot() command using the Matlab interface, I get a > syntax error. I think the MATLAB interface might be an optional component. Check the docs Dave -- To post to this group, send email to sage-support@googlegroups.com To unsubsc

[sage-support] Re: New to sage: significant digits, etc.

2011-03-01 Thread sm123123
Sigh. When I issue a plot() command using the Matlab interface, I get a syntax error. On Mar 1, 5:43 am, Dan Drake wrote: > On Mon, 28 Feb 2011 at 11:32AM -0800, sm123123 wrote: > > It seems that I was unable to convey the issue at hand. For > > Mathematica, I can issue a Plot[] command, follow

[sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread luisfe
On Mar 1, 12:59 pm, Robert Goss wrote: > > What kind of generators of ideals are you dealing with? > > For reference all the input generators are in QQ. > > Robert Then, definitely you should work in PolynomialRing(QQ,2) -- To post to this group, send email to sage-support@googlegroups.com To u

Re: [sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread Robert Goss
> What kind of generators of ideals are you dealing with? For reference all the input generators are in QQ. Robert -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, vis

Re: [sage-support] Re: New to sage: significant digits, etc.

2011-03-01 Thread Dan Drake
On Mon, 28 Feb 2011 at 11:32AM -0800, sm123123 wrote: > It seems that I was unable to convey the issue at hand. For > Mathematica, I can issue a Plot[] command, followed by an Export[] and > then use \includegraphics to use the generated plot (the its not good > enough section in the SageTeX manual

Re: [sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread Robert Goss
> No, it is not an exact computation over the complex, they are gauss > rationals a+b*I where a and b are rationals. As far as I know there is > no exact complex field implementation that is good for working with > ideals. Ah yes that would make a lot of sense. I will go back to my problem and se

[sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread luisfe
No, it is not an exact computation over the complex, they are gauss rationals a+b*I where a and b are rationals. As far as I know there is no exact complex field implementation that is good for working with ideals. What kind of generators of ideals are you dealing with? Note that even if the inpu

Re: [sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread Robert Goss
Thank you very much for your advice. I was trying to work out if the problem lay with me sage or documentation. > Do not use ideals over CC. CC is an inexact ring, so most operations > will fail. Work instead over the rationals. > > R. = PolynomialRing(QQ,2) > > or if you need complex numbers, you

[sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread luisfe
Robert, You have been answered how to solve the problem. But I would like to remark Volker's advice. Do not use ideals over CC. CC is an inexact ring, so most operations will fail. Work instead over the rationals. R. = PolynomialRing(QQ,2) or if you need complex numbers, you may try with a numb

Re: [sage-support] Re: Intersection of complex Ideals

2011-03-01 Thread Martin Albrecht
On Tuesday 01 March 2011, Simon King wrote: > Hi Robert, > > On 1 Mrz., 01:00, Robert Goss wrote: > > I have 2 ideals over the complex field and I would like to take their > > intersection. If I try and use the intersection method on one of the > > ideals i get an error message from singular stat