How can MATLAB help in finding an equation for a given curve?

  • Thread starter Thread starter davidmandis
  • Start date Start date
  • Tags Tags
    Curve
AI Thread Summary
To find a single equation for a given curve using MATLAB, a piecewise linear function can be utilized, such as f(x) = x/2000 for x ≤ 4000 and f(x) = 2 for x > 4000. For a more unified expression, the Heaviside function H(x) can be applied, allowing for the formulation f(x) = x/20000 + H(x - 4000)(4000 - x/2000). This approach effectively differentiates the behavior of the function based on the value of x. The discussion highlights the versatility of MATLAB in modeling curves through mathematical expressions.
davidmandis
Messages
1
Reaction score
0
Hi,
I need to find a single equation to represent the curve shown in the attached figure. I have access to MATLAB if that will help. Can anyone help me out?

Thanks,
David
 

Attachments

  • curve.JPG
    curve.JPG
    19.7 KB · Views: 576
Mathematics news on Phys.org
What exactly do you mean by "a single equation"? That can be simply written as a "piecewise linear function": f(x)= x/2000 if x\le 4000, f(x)= 2 if x> 4000.

If you want a "single expression", use the Heaviside function H(x) which is defined by "H(x)= 0 if x\le 0, H(x)= 1 if x> 1". We can fit it to f by taking H(x- 4000).

f(x)= x/20000 + H(x- 4000)(4000- x/2000)

If x\le4000, H(x- 4000)= 0 so f(x)= 1/2000. If x> 4000, H(x- 4000)= 1 so f(x)= 1/2000+ 4000- x/2000= 4000.
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
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...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top