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 = 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*p)
>
> f = z*tanh(pi*z)*log(z^2+a^2)
>
> f.integrate(p,-pi,pi)
>
> Error in lines 4-4
> Traceback (most recent call last):
> File
> "/projects/bcf4f485-52db-49db-ac8d-07e1b9b39795/.sagemathcloud/sage_server.py",
> line 881, in execute
> exec compile(block+'\n', '', 'single') in namespace, locals
> File "", line 1, in <module>
> File
> "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/symbolic/assumptions.py",
> line 448, in assume
> x.assume()
> File
> "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/symbolic/assumptions.py",
> line 157, in assume
> maxima.eval("declare(%s, %s)" % (self._var._maxima_init_(),
> self._assumption))
> AttributeError: 'function' object has no attribute '_maxima_init_'
>
>
>
>
>
>
> *Christophe BAL*
> *Enseignant de mathématiques en Lycée **et développeur Python amateur*
> *---*
> *French math teacher in a "Lycée" **and **Python **amateur developer*
>
> 2015-10-13 23:17 GMT+02:00 Phoenix <[email protected] <javascript:>>:
>
>>
>> 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*tanh(pi*z)*log(z^2+a^2)
>> f.integrate(p,-pi,pi)
>>
>>
>>
>> --
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.