Here is a solution that uses a combination of sine, cosine, and quadratic functions to create a smooth curve that passes through the specified points:
main.m389 chars17 lines
Output:
Note that the choice of functions used to create the curve is somewhat arbitrary, and other combinations of functions could be used to obtain different shapes.
gistlibby LogSnag