Need help: Equation for an S-curve

  • Thread starter Thread starter Physiks111
  • Start date Start date
Click For Summary
To create an S-curve given two points, such as (0,10) and (1,20), using cubic Bezier curves is recommended. The endpoints of the curve serve as the first and last control points, allowing for manipulation of the curve's shape by adjusting other control points. This method enables real-time visualization of the curve's changes when plotted in Excel. Additionally, it's important to differentiate between approximating and interpolating curves, as cubic Bezier curves do not pass through intermediate points. For further exploration of curves in multiple dimensions, researching spline generation is advised.
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.
 
Physics news 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.
 

Similar threads

Replies
17
Views
2K
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
680
Replies
3
Views
2K
Replies
2
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K