Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'gettin function formula from file' topicStudent Support Forum > General > "gettin function formula from file"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'gettin function formula from file')
Author Date Posted
gettin function formula from file Lucy 12/03/06 06:55am
Re: gettin function formula from file Daniele Lupo 12/05/06 02:57am
Re: gettin function formula from file yehua ben-sh... 12/05/06 10:27am
Re: gettin function formula from file yehuda ben-s... 12/05/06 10:30am
Next Comment >Help | Reply To Topic