Posts

Showing posts with the label segments

Parabolas revisited.

Image
While back I did an article about doing parabolas. Here is a web page that can help in printing parabola sections. You know I had to make a foil plated version. The code: (use at your own risk) <!DOCTYPE html> < html > < head > < title > Parabola Segments </ title > < script > function drawPicture(form) { var canvas = document.getElementById('example'); // link to id='example' var context = canvas.getContext('2d'); // create graphic context var scale = 350; var gain = 1; var radius = 1; var focal = form.foc.value; var step = 0.1; var Num_seg = 24; var a = 1/(4*focal); var x0 = scale*.6; var y0 = scale*2; var x ,y, dx ,dy,ds,angle,x_g,y_g; var s = 0; var x_last= 0; var y_last...