Need help: Equation for an S-curve

  • Thread starter Thread starter Physiks111
  • Start date Start date
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
2 replies · 4K views
Physiks111
Messages
3
Reaction score
0
Need something for my work:

Given a point (x1,y1) and (x2,y2) what would the equation be for an S-curve?

Say the two points are (0,10) and (1,20). Also, if the equation was more generalized such that you could play with variables to change the way the slope occurs that would be good. I found some stuff on wikipedia, but it wasn't working for me. The equations I found seem to be good if you have a large negative x going to a large positive x value. But on the x-axis I just want to go from 0 to 1. All help is appreciated, thanks.
 
on Phys.org
Try parametric polynomials, specifically cubic bezier. If you make the two points the endpoints of the curve you've defined the first and last control points. Playing around with the other control points will yield a variety of shapes connecting the two points. Plotting the curve in Excel makes is very easy to see the result real time as you change the values of the control points.

http://en.wikipedia.org/wiki/Bézier_curve
 
Just to add to what hotvette has said, you can have curves that are approximating or interpolating. In the case of bezier curves that are cubics, they only go through the end points and in general not through the middle ones. Interpolating curves go through every point that is defined.

If you want to understand these kind of curves in any dimension, do a bit of research on spline generation.