Re: [sage-support] bug while installing sage from source on macOS Monterey 12.01

2021-12-08 Thread Neelima Borade
Thank you Regards Neelima > On Dec 8, 2021, at 4:41 PM, Dima Pasechnik wrote: > > On Thu, Dec 9, 2021 at 12:22 AM Neelima Borade wrote: >> >> okay thank you I'm trying to install it from the source code, so which >> version on here is the development version? > Please see http://mirrors.mit.e

Re: [sage-support] bug while installing sage from source on macOS Monterey 12.01

2021-12-08 Thread Dima Pasechnik
On Thu, Dec 9, 2021 at 12:22 AM Neelima Borade wrote: > > okay thank you I'm trying to install it from the source code, so which > version on here is the development version? Please see http://mirrors.mit.edu/sage/devel/index.html > http://mirrors.mit.edu/sage/src/index.html Alternatively, inst

Re: [sage-support] bug while installing sage from source on macOS Monterey 12.01

2021-12-08 Thread Neelima Borade
okay thank you I'm trying to install it from the source code, so which version on here is the development version? http://mirrors.mit.edu/sage/src/index.html Best regards, Neelima On Wed, Dec 8, 2021 at 4:08 PM Dima Pasechnik wrote: > Sage 9.4 does not work on M1 Macs, you need to use the devel

Re: [sage-support] bug while installing sage from source on macOS Monterey 12.01

2021-12-08 Thread Dima Pasechnik
Sage 9.4 does not work on M1 Macs, you need to use the development version (and I am not 100% sure about the exact status of the support of M1, see https://trac.sagemath.org/ticket/30592) One of the culprits is indeed gpm, one needs gmp 6.2.1 (which is in the current beta) On Thu, Dec 9, 2021 at

[sage-support] Transformations/functions of equalities (and possibly inequalities)

2021-12-08 Thread Emmanuel Charpentier
Sage can “distribute” many operations on equalities operands, such as : sage: var("a, b") (a, b) sage: (a==b)+3 a + 3 == b + 3 sage: 3*(a==b) 3*a == 3*b sage: (a==b)^3 a^3 == b^3 But not common functions : sage: log(a==b) log(a == b) sage: sin(a==b) sin(a == b) In both cases above, “distribut

Re: [sage-support] another "how to simplify" question

2021-12-08 Thread Fernando Q. Gouvea
I see. So the difference between this and, say, 1+1==2 (which returns True) is that 1+1 and 2 are numbers, not symbolic things. Fernando On 12/8/2021 3:37 PM, William Stein wrote: On Wed, Dec 8, 2021 at 12:22 PM Fernando Q. Gouvea wrote: Thank you, that works. What is strange is that

Re: [sage-support] another "how to simplify" question

2021-12-08 Thread William Stein
On Wed, Dec 8, 2021 at 12:22 PM Fernando Q. Gouvea wrote: > Thank you, that works. What is strange is that this does not: > > sage: right=integrate(integrate(sin(x^2),y,0,x),x,0,1) > sage: wrong=integrate(integrate(sin(x^2),x,y,1),y,0,1) > sage: real(wrong)==right > -1/2*cos(1) + 1/2 == -1/2*cos(

Re: [sage-support] another "how to simplify" question

2021-12-08 Thread Fernando Q. Gouvea
Thank you, that works. What is strange is that this does not: sage: right=integrate(integrate(sin(x^2),y,0,x),x,0,1) sage: wrong=integrate(integrate(sin(x^2),x,y,1),y,0,1) sage: real(wrong)==right -1/2*cos(1) + 1/2 == -1/2*cos(1) + 1/2 Is Sage seeing a difference there that I don't? I think

Re: [sage-support] another "how to simplify" question

2021-12-08 Thread William Stein
You can compare the real and imaginary parts directly. https://cocalc.com/wstein/support/2021-12-08-gouvea sage: bool(wrong.real() == right) True sage: wrong.imag() 0 On Wed, Dec 8, 2021 at 10:07 AM Fernando Q. Gouvea wrote: > I was showing my students a famous calculus example of an integral

[sage-support] another "how to simplify" question

2021-12-08 Thread Fernando Q. Gouvea
I was showing my students a famous calculus example of an integral that can be computed in one order of the variables but not in the other. Knowing that SageMath can compute anything, the students suggested trying the integral the "wrong" way. The "right" way is sage: integrate(integrate(sin(