[sage-support] Coefficient of Boolean Polynomial

2014-11-17 Thread Santanu Sarkar
In my Sage code, R.v1, v2, v3=BooleanPolynomialRing(3) f=v1*v2+v1*v3+v1 print f.coefficient(v1) I am getting Traceback (click to the left of this block for traceback) ... AttributeError: 'sage.rings.polynomial.pbori.BooleanPolynomial' object has no attribute 'coefficient' Answer should be

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Emmanuel Charpentier
Why 0.04 ? Th notebook says : S=(5^( x -1) == (0.04)^(2*x)).subs({0.04:1/25}).log().solve(x) ; S [x == log(5)/(2*log(25) + log(5))] bool(S[0].rhs()==1/5) True (The last step is easily done by mental computation ; this is only a check.). HTH, -- Emmanuel Charpentier Le dimanche 16 novembre

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Chris Seberino
If you ask Sage to do something it can't, like solve a quintic polynomial equation, it will spit the question back at you. If Sage did that I'd be fine. However, Sage spit back the empty set which is the WRONG answer and far different yes? On Sunday, November 16, 2014 12:54:20 PM UTC-6,

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Chris Seberino
I didn't *need* to have 0.04. This is just a command that actually came up in real work. I didn't want to alter it in any way lest it may be a genuine bug. cs On Monday, November 17, 2014 6:48:04 AM UTC-6, Emmanuel Charpentier wrote: Why 0.04 ? Th notebook says : S=(5^( x -1) ==

[sage-support] Re: Coefficient of Boolean Polynomial

2014-11-17 Thread slelievre
Santanu wrote: R.v1, v2, v3=BooleanPolynomialRing(3) f=v1*v2+v1*v3+v1 print f.coefficient(v1) I am getting Traceback (click to the left of this block for traceback) ... AttributeError: 'sage.rings.polynomial.pbori.BooleanPolynomial' object has no attribute 'coefficient' Answer

[sage-support] simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread Bozh
Hi sage-support, I'm a complete newbie to sage. Currently I started learning the very first example in the tutorial on algebra, but got the following error in 'solve'. I'm running OS X 10.9.5, and sage version is 6.4. sage: x=var('x') sage: solve(x^2 + 3*x + 2, x) In file included

[sage-support] Re: simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread Bozh
I run the following code: $ sage -maxima And the messages are: ;;; Loading #P/Applications/sage/local/lib/ecl/cmp.fas ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0 ;;; ;;; End of Pass 1.In file included from /Applications/sage/local/lib/ecl/ecl/ecl-cmp.h:22:0,

[sage-support] Re: simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread kcrisman
On Monday, November 17, 2014 8:49:14 PM UTC-5, Bozh wrote: I run the following code: $ sage -maxima And the messages are: Can you see what is in $ ls /usr/include/sys/ presumably types.h should be there. Did you download a binary? Can you say precisely which one you downloaded?

Re: [sage-support] simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread Bozh
In my Mac the directory '/usr/include/sys/' does not exist, and I’ve no idea about this. Yes, I downloaded a binary from this link: http://mirrors.hustunique.com/sagemath/osx/intel/index.html and I chose the *10.9_x86_64-app.dmg. Shall I use *10.9_x86_64.dmg instead? On Nov 18, 2014, at 10:10

[sage-support] Re: simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread Nils Bruin
On Monday, November 17, 2014 5:49:14 PM UTC-8, Bozh wrote: ;;; (RUN-PROGRAM gcc (-I. -I/Applications/sage/local/lib/ecl/ -I/Users/buildslave-sage/slave/sage_git/build/local/include -I/Users/buildslave-sage/slave/sage_git/build/local/include -g -O2 -fPIC -fno-common -Ddarwin -O2 -c

[sage-support] Re: simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread Bozh
I tried 2 other binaries from different locations, but the problem remains. I noted from kcrisman's response that I have no '/usr/include/sys/' directory, so maybe this problem comes with Xcode? On Tuesday, November 18, 2014 11:07:56 AM UTC+8, Nils Bruin wrote: On Monday, November 17, 2014

[sage-support] Re: simple 'solve' error, possibly related to ecl and maxima installation

2014-11-17 Thread Bozh
Problem solved. I did not install 'Command Line Tools for Xcode' previously on my Mac because I did not read instructions on installing Sage from source code. After installing Command Line Tools, it works now. Though the installation of Sage is still from a binary one. @Nils and @kcrisman,

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Emmanuel Charpentier
Le lundi 17 novembre 2014 17:32:27 UTC+1, Chris Seberino a écrit : If you ask Sage to do something it can't, like solve a quintic polynomial equation, it will spit the question back at you. If Sage did that I'd be fine. However, Sage spit back the empty set which is the WRONG answer and