help
- To: mathgroup at yoda.physics.unc.edu
- Subject: help
- From: Jesus ROJO <jesroj at wmatem.eis.uva.es>
- Date: Fri, 17 Jun 94 12:18:03 PST
Hello:
I have a `Module' of the following type:
function[x_Real,y_Real]:=
Module[{z,t,aa,bb,cc,...},
aa=2*Pi*x-y*3.12;
bb=x-y;
...
]
(it is only an example).
I'm not interested in any kind of formal computation, but only in
numerical computations, much faster. My question is the following.
Should I choose this way:
function[x_Real,y_Real]:=
N[
Module[{z,t,aa,bb,cc,...},
aa=2*Pi*x-y*3.12;
bb=x-y;
...
]
]
or is it better this other one:
function[x_Real,y_Real]:=
Module[{z,t,aa,bb,cc,...},
aa=N[ 2*Pi*x-y*3.12 ];
bb=N[ x-y ];
...
]
Or maybe anyother thing?. Here my main interest is the
computation speed.
Thank-you
Jesus ROJO
--
---------------------------------------
| Jesus ROJO |
| Dpto. de Matematica Aplicada |
| E.T.S. de Ingenieros Industriales |
| Paseo del Cauce s/n |
| 47011 VALLADOLID, Spain |
| Phone : 34 - 83 - 42 33 90 |
| Fax : 34 - 83 - 42 34 06 |
| e-mail: jesroj at wmatem.eis.uva.es |
---------------------------------------