Need help: Equation for an S-curve

  • Thread starter Thread starter Physiks111
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on deriving an equation for an S-curve between two points, specifically (0,10) and (1,20). The recommended approach involves using cubic Bezier curves, where 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. Additionally, the discussion highlights the distinction between approximating and interpolating curves, emphasizing that cubic Bezier curves do not pass through intermediate control points. For further understanding, spline generation is suggested as a broader topic.

PREREQUISITES
  • Cubic Bezier curves
  • Parametric polynomials
  • Excel for plotting curves
  • Spline generation concepts
NEXT STEPS
  • Research cubic Bezier curve equations and their control points
  • Learn how to plot parametric curves in Excel
  • Explore spline generation techniques for multidimensional curves
  • Study the differences between approximating and interpolating curves
USEFUL FOR

Mathematicians, graphic designers, software developers, and anyone interested in curve modeling and interpolation techniques.

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
3K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
4K
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K