| Author |
Comment/Response |
Lucy
|
12/03/06 06:55am
Is it possible to get function formula from file?
In the file I have i.e. x*Sin[x]
I've tried this:
1.
f[x_]:=Import["dane2.dat"]
and then I have the formula of f[x] as
{{x*Sin[x]}}
but i.e. f[3] gives constantely {{x*Sin[x]}}
2.
f[x_]:=Flatten[Import["dane2.dat"]][[1]]
this reduces brackets and calling f[x] gives x*Sin[x]
but Mathematica still thinks it is a string and calling i.e. f[5] gives x*Sin[x]
URL: , |
|