[sage-support] Re: Using lrs in Sage

2014-05-29 Thread Volker Braun
On Thursday, May 29, 2014 2:29:50 AM UTC+1, kcrisman wrote: Also, see https://groups.google.com/forum/#!topic/sage-devel/oH6Jrjs-HUYfor a very interesting historical discussion about lrs and Sage. Though in the meantime we have direct implementations for triangulation and volume computation

[sage-support] Installation and Bayesian Econometrics support

2014-05-29 Thread Filippo Pellegrino
Hi all, I've been very impressed with Sage and I'm downloading the .dmg for my mac at this moment. I'm writing here mainly for two reason: - firstly because I would like to understand if and how I can set my current python directory as default; - secondly because I'd like to know If Sage or

[sage-support] sage-env problems - sage-6.2-x86_64-Darwin

2014-05-29 Thread Allen Hall
Hi everyone, I have what is likely a simple problem, but am having trouble tracking it down. I'm using the binary / dmg release of Sage for osX on a 10.9.1 machine. I mistakenly launched Sage from the dmb, and that is likely the source of all my woes. Current problem (after pointing it to

[sage-support] Simplify number

2014-05-29 Thread SiL588 .
Hi, i tried to simplify a number doing this: m1.simplify() but the output is AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute 'simplify' What does it mean? What did I do wrong? I declared m1 like this: m1 = var('m1') thank you very much! -- You received this

[sage-support] Re: Simplify number

2014-05-29 Thread Simon King
Hi! On 2014-05-29, SiL588 . ch4r...@hotmail.com wrote: Hi, i tried to simplify a number doing this: m1.simplify() but the output is AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute 'simplify' What does it mean? What did I do wrong? I declared m1 like this: m1

[sage-support] Re: Installation and Bayesian Econometrics support

2014-05-29 Thread kcrisman
I've been very impressed with Sage and I'm downloading the .dmg for my mac at this moment. Thanks! I'm writing here mainly for two reason: - firstly because I would like to understand if and how I can set my current python directory as default; Sage is an all-in-one ecosystem.

Re: [sage-support] Re: Simplify number

2014-05-29 Thread Robert Bradshaw
What exactly do you mean by simplify a real number? On Thu, May 29, 2014 at 8:32 AM, SiL588 . ch4r...@hotmail.com wrote: Unfortunately I don't know the rules of Phyton language, i just started using Sage notebook to do linear algebra computation. I think I did what you said, I assinged m a

Re: [sage-support] Re: Simplify number

2014-05-29 Thread SiL588 .
The output i have is this: 12.0 and I didn't want all those zeroes after the point. Il giorno giovedì 29 maggio 2014 17:46:51 UTC+2, Robert Bradshaw ha scritto: What exactly do you mean by simplify a real number? On Thu, May 29, 2014 at 8:32 AM, SiL588 .

Re: [sage-support] Re: Simplify number

2014-05-29 Thread William Stein
On Thu, May 29, 2014 at 8:59 AM, SiL588 . ch4r...@hotmail.com wrote: The output i have is this: 12.0 and I didn't want all those zeroes after the point. Try doing int(m) or floor(m) William Il giorno giovedì 29 maggio 2014 17:46:51 UTC+2, Robert Bradshaw ha scritto:

[sage-support] Re: Simplify number

2014-05-29 Thread Simon King
Hi, On 2014-05-29, SiL588 . ch4r...@hotmail.com wrote: Unfortunately I don't know the rules of Phyton language, Sage's main language for programming is Python, and also the language for user interaction is close to Python. We believe it is a big plus of Sage that it uses a mainstream language!

[sage-support] Re: Simplify number

2014-05-29 Thread SiL588 .
Il giorno giovedì 29 maggio 2014 18:06:19 UTC+2, Simon King ha scritto: Hence, at least for those variables that you override in the second cell, the first cell is of no use. Oh ok, I didn't understand that's the way it works I don't know what you mean by simplify a real number.

[sage-support] Re: Installation and Bayesian Econometrics support

2014-05-29 Thread Filippo Pellegrino
Thank you! I will let you know as soon as possible about pymc, I think that this library does only a part of the work (MCMC sampling) that I need to do. It probably doesn’t include something called “Minnesota priors” and the implementation of a prior using “Dummy observations” for “Vector

[sage-support] Re: Simplify number

2014-05-29 Thread Dominique Laurain
We get in trouble with your question, because you used simplify verb...which should have been refering to other SAGE simplifying functions (floor, simplify symbolic expression and so on) when you wanted to display only few significant digits of that real number. Function for you is :

Re: [sage-support] Re: Simplify number

2014-05-29 Thread William Stein
If you just want to safely print numbers with the trailing zeros removed, used strip: a = 12.00 b = 0.8 str(a).rstrip('0') str(b).rstrip('0') On Thu, May 29, 2014 at 9:53 AM, Dominique Laurain dominique.laurai...@orange.fr wrote: We get in trouble with your question, because you

[sage-support] Re: Simplify number

2014-05-29 Thread SiL588 .
I'm sorry I wasn't clear, as I said I just started using Sage and I thought that was what the simplify method was for. Thank you very much for your explanation, now I got it :) Il giorno giovedì 29 maggio 2014 18:53:23 UTC+2, Dominique Laurain ha scritto: We get in trouble with your question,

Re: [sage-support] Re: Simplify number

2014-05-29 Thread SiL588 .
Okay, thank you very much! :) Il giorno giovedì 29 maggio 2014 18:57:45 UTC+2, William ha scritto: If you just want to safely print numbers with the trailing zeros removed, used strip: a = 12.00 b = 0.8 str(a).rstrip('0') str(b).rstrip('0') -- You received this

[sage-support] Re: Does Sage support content mathML?

2014-05-29 Thread Robert Dodier
On 2014-05-27, TAM traci...@gmail.com wrote: I was wondering if Sage supports saving an equation in content and presentation mathML? I don't know if there is anything in Sage and/or Python for that, but anyway, Maxima has a couple of add-on packages to export an expression as content MathML

Re: [sage-support] Does Sage support content mathML?

2014-05-29 Thread David Joyner
On Tue, May 27, 2014 at 1:48 PM, TAM traci...@gmail.com wrote: I was wondering if Sage supports saving an equation in content and presentation mathML? You can save in latex then use this package: http://dlmf.nist.gov/LaTeXML/manual/ Thank you for your help. TAM -- You received this

[sage-support] Re: Does Sage support content mathML?

2014-05-29 Thread TAM
Great, thank you for the information. I will definitely take a look at this! On Thursday, May 29, 2014 1:24:00 PM UTC-4, Robert Dodier wrote: On 2014-05-27, TAM wrote: I was wondering if Sage supports saving an equation in content and presentation mathML? I don't know if there is

Re: [sage-support] Does Sage support content mathML?

2014-05-29 Thread TAM
Thank you for the feedback! I will definitely take a look at this as well. On Thursday, May 29, 2014 1:32:01 PM UTC-4, David Joyner wrote: On Tue, May 27, 2014 at 1:48 PM, TAM trac...@gmail.com javascript: wrote: I was wondering if Sage supports saving an equation in content and

[sage-support] Re: What is /path/to/file.sage when stored in cloud folder under project? For load('file.sage') ?

2014-05-29 Thread Stephen Kauffman
Willian Stein responded saying it the question wasn't specific to SageMathCloud anyway the answer was os.path.abspath('.') On Wednesday, May 28, 2014 9:17:23 AM UTC-4, Dima Pasechnik wrote: On Wednesday, 28 May 2014 14:15:23 UTC+1, Dima Pasechnik wrote: this is not the right group for the

[sage-support] How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread Stephen Kauffman
Specifically I have a polynomial such as mypoly = X*Y + 1 in BooleanPoynomialRing() and str(mypoly) converts it to the string 'X*Y + 1' then I do some stuff with re pattern matching to construct the string '1 - x*y' which I now want to convert to a polynomial in 'x' and 'y' in QQ. Are there

Re: [sage-support] Re: What is /path/to/file.sage when stored in cloud folder under project? For load('file.sage') ?

2014-05-29 Thread William Stein
On Thu, May 29, 2014 at 11:04 AM, Stephen Kauffman strangerl...@gmail.com wrote: Willian Stein responded saying it the question wasn't specific to SageMathCloud anyway the answer was os.path.abspath('.') Yes -- as people may have noticed, SageMathCloud is resulting in some new Sage users. When

Re: [sage-support] How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread William Stein
On Thu, May 29, 2014 at 11:13 AM, Stephen Kauffman strangerl...@gmail.com wrote: Specifically I have a polynomial such as mypoly = X*Y + 1 in BooleanPoynomialRing() and str(mypoly) converts it to the string 'X*Y + 1' then I do some stuff with re pattern matching to construct the string '1 -

Re: [sage-support] How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread Stephen Kauffman
That's a lot simpler than I thought it would be. Thanks. I'm converting free boolean algebra statements to corresponding probability statements with a recursive function hopefully. On 5/29/2014 2:17 PM, William Stein wrote: On Thu, May 29, 2014 at 11:13 AM, Stephen Kauffman

Re: [sage-support] How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread William Stein
On Thu, May 29, 2014 at 11:22 AM, Stephen Kauffman strangerl...@gmail.com wrote: That's a lot simpler than I thought it would be. Thanks. I'm converting free boolean algebra statements to corresponding probability statements with a recursive function hopefully. Yep, there's a general Sage

[sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread Simon King
Hi Stephen On 2014-05-29, Stephen Kauffman strangerl...@gmail.com wrote: Specifically I have a polynomial such as mypoly = X*Y + 1 in BooleanPoynomialRing() and str(mypoly) converts it to the string 'X*Y + 1' then I do some stuff with re pattern matching to construct the string '1 - x*y'

Re: [sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread William Stein
On Thu, May 29, 2014 at 11:37 AM, Simon King simon.k...@uni-jena.de wrote: Hi Stephen On 2014-05-29, Stephen Kauffman strangerl...@gmail.com wrote: Specifically I have a polynomial such as mypoly = X*Y + 1 in BooleanPoynomialRing() and str(mypoly) converts it to the string 'X*Y + 1' then I

[sage-support] TypeError: 'sage.rings.integer.Integer' object is not iterableg

2014-05-29 Thread baby bunny
Hi, I'm new to sage. I'm reading the tutorial and trying out examples. But when I try this example: sage: class Evens(list):... def __init__(self, n):... self.n = n... list.__init__(self, range(2, n+1, 2))... def __repr__(self):... return Even

Re: [sage-support] Re: What is /path/to/file.sage when stored in cloud folder under project? For load('file.sage') ?

2014-05-29 Thread leif
William Stein wrote: On Thu, May 29, 2014 at 11:04 AM, Stephen Kauffman strangerl...@gmail.com wrote: Willian Stein responded saying it the question wasn't specific to SageMathCloud anyway the answer was os.path.abspath('.') Yes -- as people may have noticed, SageMathCloud is resulting in

[sage-support] Re: TypeError: 'sage.rings.integer.Integer' object is not iterableg

2014-05-29 Thread Simon King
Hi, On 2014-05-29, baby bunny mongrandpecheradi...@gmail.com wrote: Hi, I'm new to sage. I'm reading the tutorial and trying out examples. But when I try this example: sage: class Evens(list): ... def __init__(self, n): ... self.n = n ... list.__init__(self,

Re: [sage-support] Re: What is /path/to/file.sage when stored in cloud folder under project? For load('file.sage') ?

2014-05-29 Thread William Stein
On May 29, 2014 1:02 PM, leif not.rea...@online.de wrote: William Stein wrote: On Thu, May 29, 2014 at 11:04 AM, Stephen Kauffman strangerl...@gmail.com wrote: Willian Stein responded saying it the question wasn't specific to SageMathCloud anyway the answer was os.path.abspath('.') Yes

Re: [sage-support] Re: How do you convert a string reprsentation of a polynomial back to a polynomial in a polynomial ring

2014-05-29 Thread Kannappan Sampath
On Fri, May 30, 2014 at 12:17 AM, William Stein wst...@gmail.com wrote: On Thu, May 29, 2014 at 11:37 AM, Simon King simon.k...@uni-jena.de wrote: Hi Stephen On 2014-05-29, Stephen Kauffman strangerl...@gmail.com wrote: Specifically I have a polynomial such as mypoly = X*Y + 1 in