How can I save computations with multiple parameters in Mathematica?

  • Context: Mathematica 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Output
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 2K views
member 428835
Hi PF!

I'm computing functions that depend on parameter values, such as ##f(x,n,a) = a x^n##, where I compute ##a = \int_0^1x^n\, dx##. I compute for say ##a = \{ 1,2,3 \}##. Is there a way to save this in a different notebook so I don't have to repeat computations after I close Mathematica? I've read the "save" documentation but it's unclear to me if I have to give a different name to each variable: i.e. ##f1 = f[x,1,a], f2 = f[x,2,a]## and then save ##f1,f2## or if I can simply save variables as ##f[x,1,a],f[x,2,a]##.

Any help is greatly appreciated!
 
on Phys.org