Hi,

Le vendredi 22 février 2019 21:33:38 UTC+1, Richard_L a écrit :

>
> I conclude there is something about the scalar field which is not being 
> defined until the .display() is executed. 
> Is this the intended behavior, or an oversight?
>

The issue is not related to scalar fields: it is unfortunately  a bug in 
the Maxima / Sage interface, triggered by the fact that 'psi' is a special 
function in Maxima:
http://maxima.sourceforge.net/docs/manual/maxima_15.html#Item_003a-psi
This bug has been encountered before:
https://ask.sagemath.org/question/43287/

In your case, a quick workaround is to name the symbolic function by 
something different from 'psi', e.g 'psi0':
psi = E.scalar_field({c_E: function('psi0')(r,th,ph)}, 
name='psi',latex_name='\psi')

Another solution is to use SymPy instead of Pynac/Maxima for the symbolic 
backend. It suffices to add the line
E.set_calculus_method('sympy')
just after
E = EuclideanSpace(3)
Then everything works well...

Eric.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to