Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How should I use the numerical method .n()?

If I want to numerically calculate an expression involving several terms and I am worried about efficiency should I numerically calculate each term? For example is there a difference between:

data = [ (sin(t)*exp(t)).n() for t in srange(0,10,0.01) ]

vs

data = [ sin(t).n()*exp(t).n() for t in srange(0,10,0.01) ]

?

click to hide/show revision 2
None

How should I use the numerical method .n()?

If I want to numerically calculate an expression involving several terms and I am worried about efficiency should I numerically calculate each term? For example is there a difference between:

data = [ (sin(t)*exp(t)).n() for t in srange(0,10,0.01) ]

srange(0, 10, 0.01) ]

vs

data = [ sin(t).n()*exp(t).n() for t in srange(0,10,0.01) ]

srange(0, 10, 0.01) ]

?