Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.03 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.03 KB

308reedpipes

Having been a reed pipe enthusiast for a long time now, your cousin cobbled together a little numericallycontrolled machine that will enable him to carry out a serial production of reed pipes and make a businessout of it. However, he would like a software so that he can design his pipes himself. . .

So, you have to create a program for him that, starting from the pipe’s radius (in cm) with abscissas 0, 5, 10,15 and 20 cm, and using cubic splines, displays the radii ofnpoints that are evenly distributed along thepipe. In order to simplify the debugging process, you will also display the resolved linear system’s vectorresult in order to obtain the spline.

USAGE

./308reedpipes r0 r5 r10 r15 r20 n

DESCRIPTION

r0 radius (in cm) of pipe at the 0cm abscissa

r5 radius (in cm) of pipe at the 5cm abscissa

r10 radius (in cm) of pipe at the 10cm abscissa

r15 radius (in cm) of pipe at the 15cm abscissa

r20 radius (in cm) of pipe at the 20cm abscissa

n number of points needed to display the radius