2015-10-14 21:17:08 UTC+2, Phoenix:
Why is "n" different from x,z and f ?
>
> Shouldn't all of them need to be declared as variables in that case?
>
`n` is different because SageMath has a function called `n`,
which is short for `numerical_approximation`:
sage: n(pi)
3.14159265358979
On Wednesday, October 14, 2015 at 6:28:16 PM UTC+2, kcrisman wrote:
>
> Just as a point of info, "n" is not a variable by default, but rather
> numerical approximation. So you may want to do var('n') first. This is
> probably the issue.
>
As a data point, with var('n') I get here:
sage: f.int
Why is "n" different from x,z and f ?
Shouldn't all of them need to be declared as variables in that case?
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to s
Just as a point of info, "n" is not a variable by default, but rather
numerical approximation. So you may want to do var('n') first. This is
probably the issue.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group a
So what is the remnant problem?
On Wednesday, October 14, 2015 at 3:04:34 AM UTC+5:30, projetmbc wrote:
>
> x and n seems to be defined by default as variables but this is not true
> for a, so you have to add a = bar("a"). But after this change, there is
> then another problem.
>
>
> a = va
x and n seems to be defined by default as variables but this is not true
for a, so you have to add a = bar("a"). But after this change, there is
then another problem.
a = var("a")
assume(a>0)
assume(x>=0)
assume(n,'integer')
assume(n+1/2+x < a )
assume(n+1/2 - x > -a)
z = i*(n+1/2)+x*exp(i*
Can someone kindly explain what is wrong with the following?
I am integrating the function ztanh(pi z)log(z^2+a^2) on a small circle of
radius x about the point i(n+1/2)
assume(a>0)
assume(x>=0)
assume(n,'integer')
assume(n+1/2+x < a )
assume(n+1/2 - x > -a)
z = i*(n+1/2)+x*exp(i*p)
f = z*t