Mathematica How can I save computations with multiple parameters in Mathematica?

  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Output
AI Thread Summary
The discussion centers on computing functions in Mathematica that depend on parameter values, specifically the function f(x,n,a) = a x^n, where a is derived from the integral of x^n from 0 to 1. The user seeks guidance on saving computed values in a different notebook to avoid repeating calculations after closing Mathematica. They are uncertain whether each variable needs a unique name, such as f1 and f2 for different parameters, or if they can save variables directly as f[x,1,a] and f[x,2,a]. The response suggests consulting Mathematica's documentation for saving variables, indicating that clarity on this process is essential for efficient workflow management.
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!
 
Physics news on Phys.org

Similar threads

Replies
12
Views
5K
Replies
4
Views
1K
Replies
1
Views
1K
Replies
4
Views
2K
Replies
10
Views
12K
Replies
4
Views
3K
Back
Top