[sage-support] Re: How to define a generic function?

2020-10-04 Thread Eric Gourgoulhon
Simply use

mr = function('m')(r)

See 
https://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Worksheets/v1.3/SM_TOV.ipynb
for a full example.

Best wishes,

Eric.

Le dimanche 4 octobre 2020 à 10:15:43 UTC+2, matt...@gmail.com a écrit :

> I am trying to calculate the general expression of the Kretschmann scalar 
> of  metric depending a non specified function m(r): how do I define such a 
> function? II have tried with
> def m(r) 
> but it is wrong since it expects a definition of the function
>

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8021ebb0-eddb-4102-84dc-81b38900e47cn%40googlegroups.com.


Re: [sage-support] How to define a generic function? -sage manifolds, Kretschmann scalar

2020-10-04 Thread Dima Pasechnik
just added some keywords to the subject.

On Sun, Oct 4, 2020 at 9:15 AM Mattia Villani  wrote:
>
> I am trying to calculate the general expression of the Kretschmann scalar of  
> metric depending a non specified function m(r): how do I define such a 
> function? II have tried with
> def m(r)
> but it is wrong since it expects a definition of the function
>

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq12PhMgTaBJh3DsY%2Bsv_B94uUsgN%2BkubgWs-crPkRwKeQ%40mail.gmail.com.


Re: [sage-support] How to cite?

2020-10-04 Thread Dima Pasechnik
On Sun, Oct 4, 2020 at 10:31 AM Mattia Villani  wrote:
>
> I have used Sagemath for my work: are there any pubblications I can cite to 
> acknowledge sagemath authors?
please see https://wiki.sagemath.org/Publications_using_SageMath

(We should have this in our FAQ too - see ttps://trac.sagemath.org/ticket/30717)

HTH
Dima

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0G_%3D27ZRNhNrochd%2B-b8s8DVRRfaM-Df5k6jt2wpPMEQ%40mail.gmail.com.


[sage-support] How to cite?

2020-10-04 Thread Mattia Villani
I have used Sagemath for my work: are there any pubblications I can cite to 
acknowledge sagemath authors?

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/17fade21-cddd-452b-a8a7-6f081b8265een%40googlegroups.com.


[sage-support] How to define a generic function?

2020-10-04 Thread Mattia Villani
I am trying to calculate the general expression of the Kretschmann scalar 
of  metric depending a non specified function m(r): how do I define such a 
function? II have tried with
def m(r) 
but it is wrong since it expects a definition of the function

-- 
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 sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d26d2784-e62d-4857-886e-6a0d56ac705cn%40googlegroups.com.