I set up a 3-dimensional Euclidean manifold, defining both Cartesian and 
spherical coordinates, charts, and frames..
Next, I define a scalar field: 
 

> psi = E.scalar_field({c_E: function('psi')(r,th,ph)}, 
> name='psi',latex_name='\psi')
>

See attached file "Euclid.sage" for details

Now, attempting to calculate the Laplacian of psi results in a traceback: 

TypeError: Symbolic function psi takes at most 2 arguments (3 given)
>
 
See attached file "Euclid.trace" for details.

If, however, I display psi between creating it and taking the Laplacian, 
then there is no error and traceback.

# The following line is required in order for the Laplacian to be computed.
> psi.disp()
> #
>

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?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Attachment: Euclid.trace
Description: Binary data

Attachment: Euclid.sage
Description: Binary data

Reply via email to