Fitting a function in mathematica

AI Thread Summary
To find the constant x that optimizes the fit of the function f(x,y) based on known values of f and y, one can use Mathematica's Solve and Plot functions. For example, if f(x,y) is defined as (xy)^3 and you know f(x,y) equals 14 when y is pi/2, you can calculate x as 14^(1/3)/(pi/2). This allows you to express f as a function of y alone. Utilizing these methods in Mathematica will help achieve the desired optimization.
elionix
Messages
15
Reaction score
0
Say I have a function:

f(x,y)

I have values for f and y such that I can make a plot of f vs y... however, from the values of f and y, I am interested in finding what x is. The x value should be a constant that is optimized to fit the f vs y graph.

Is there a way I can do this in mathematica?

Thank you for any advice!
 
Mathematics news on Phys.org
Okay, I'm a bit confused by your problem.

you mean, taking a specific example, for instance f(x,y)=(xy)^3? Then, if you know for instance f(x,y)=14 and y=pi/2, that x should be \frac{14^{1/3}}{pi/2}. Using that you can then see that f(x,y)=f(y)=(\frac{14^{1/3}}{pi/2} y)^3. Trying the mathematica functions Solve and Plot should get you on your way.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top