Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Import polynomial from file and define function from it.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112146] Re: Import polynomial from file and define function from it.
  • From: E. Pérez Herrero <enriqueperezherrero at gmail.com>
  • Date: Thu, 2 Sep 2010 02:30:49 -0400 (EDT)
  • References: <i5l9pq$7en$1@smc.vnet.net>

Example:


(* Exporting the formula *)
Export["test.txt", "F[x_,y_]:=3*x^2+x*y+3"]

(* Importing data *)
ToExpression[Import["test.txt"]]

Now you can use F:

F[2,3]

21


  • Prev by Date: Re: Working with Log
  • Next by Date: Using ChartStyle
  • Previous by thread: Import polynomial from file and define function from it.
  • Next by thread: Re: Plot of (2 x^2 - x^3)^(1/3)