Or:
sage: import sage.libs.mpmath.all as mpmath
sage: V=mpmath.call(mpmath.legenp,2.1,0,-2);V
5.83105230126368 + 1.89579005740338*I
sage: type(V)
type 'sage.rings.complex_number.ComplexNumber'
On 13 Kwi, 23:45, Fredrik Johansson fredrik.johans...@gmail.com
wrote:
On Apr 13, 7:48 pm,
Am I going crazy?
sage: integrate(cos(2*x)*cos(x), x, 0, pi)
4/3
--
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, visit this group at
On Thursday, April 14, 2011 5:39:27 PM UTC-7, Michael Orlitzky wrote:
Am I going crazy?
sage: integrate(cos(2*x)*cos(x), x, 0, pi)
4/3
I get zero when I compute it. What version of Sage is this?
--
John
--
To post to this group, send email to sage-support@googlegroups.com
To
On Thu, 14 Apr 2011 at 07:40PM -0700, John H Palmieri wrote:
On Thursday, April 14, 2011 5:39:27 PM UTC-7, Michael Orlitzky wrote:
Am I going crazy?
sage: integrate(cos(2*x)*cos(x), x, 0, pi)
4/3
I get zero when I compute it. What version of Sage is this?
I'm getting 4/3 in
Why doesn't this work?
sage: assume(x -1)
sage: assume(x 1)
sage: n = var('n')
sage: limit(x^(n+1)/(1-x), n=infinity)
-limit(x^(n + 1), n, +Infinity)/(x - 1)
...when this works:
sage: forget()
sage: assume(0 x)
sage: assume(x 1)
sage:
In 64bit 4.6.2 fedora13 Dell Vostro 1720
sage: numerical_integral(lambda x: cos(2*x)*cos(x), 0, pi)
(4.4478052108155282e-17, 1.3516940761795953e-14)
sage: plot(cos(2*x)*cos(x), (x, 0, pi))
Maxima and Wolfram alpha: 0
sage: integral(cos(2*x)*cos(x), x, 0, pi)
4/3
On 15 Kwi, 05:27, Dan Drake
To be more precise:
Maxima 5.23.2 gives 0
Sage 4.6.2 has 5.22.1 (and gives 4/3)
On 15 Kwi, 06:00, achrzesz achrz...@wp.pl wrote:
In 64bit 4.6.2 fedora13 Dell Vostro 1720
sage: numerical_integral(lambda x: cos(2*x)*cos(x), 0, pi)
(4.4478052108155282e-17, 1.3516940761795953e-14)
sage: