On 7/6/11 10:02 PM, robin hankin wrote:
Hi Jason
thanks for this ( I did mean 'c' not 'y'; apologies).
I didn't know about QQbar().
Why does QQbar(c) return what appears to be a numerical result, with a
question mark after it?
That is an approximation of the exact number (the question mark
Hi Jason
thanks for this ( I did mean 'c' not 'y'; apologies).
I didn't know about QQbar().
Why does QQbar(c) return what appears to be a numerical result, with a
question mark after it?
thanks again
Robin
On Thu, Jul 7, 2011 at 4:43 PM, Jason Grout wrote:
> On 7/6/11 6:20 PM, robin hankin w
On 7/6/11 6:20 PM, robin hankin wrote:
[apologies if this is a resend]
Hi. I am having difficulty using sage to manipulate square roots.
Consider:
a = 1 + sqrt(2) + sqrt(3)
b= (a^2).expand()
c = sqrt(b)
Then 'y' should be equal to 'a'.
I get:
sage: a = 1 + sqrt(2) + sqrt(3)
sage: b= (a^2)
[apologies if this is a resend]
Hi. I am having difficulty using sage to manipulate square roots.
Consider:
a = 1 + sqrt(2) + sqrt(3)
b= (a^2).expand()
c = sqrt(b)
Then 'y' should be equal to 'a'.
But, given 'y' I cannot make sage return the simple form.
Trying
y.simplify_full()
doesn't do
On Wed, Jul 6, 2011 at 9:51 AM, jeremy chabot wrote:
> Hi, I am trying to implement the infinite polynomial ring as a free
> commutative algebra.
>
> I am unsure of exactly how to do this. So far I have:
>
> ---
> X.=
Hi, I am trying to implement the infinite polynomial ring as a free
commutative algebra.
I am unsure of exactly how to do this. So far I have:
---
X.=InfinitePolynomialRIng(QQ)
---
Hi Siham,
On Wed, Jul 6, 2011 at 9:54 PM, siham ezzouak wrote:
> thanks you for your answers but this one return many thanks I want to
> compare execution time for two programs and at the end calculate (time
> program1)/(time program2). time return many things I want to select just CPU
> time it'
And starting with sage-4.7.1.alpha4 you can also do
sage: timeit('2**128', seconds=True)
1.4945983886718749e-06
--
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
Hi siham,
On Wed, Jul 6, 2011 at 9:28 PM, siham ezzouak wrote:
> Hi;
> I want to compare execution time for two programs in sage I see that we can
> use function time but this one return many things I want just time
> processors.
> do you know function that allow us to do this?
> thanks you in a