Skip to main content
1-Visitor
March 25, 2014
Question

Divide by zero error when trying to create a graph

  • March 25, 2014
  • 2 replies
  • 3646 views

We are getting into integrals etc and have managed to create some neat shapes. However, trying to create a Gabriels horn using parametric equations results in an error message of "divide by zero". Yet, extracting the y and z values on their own does give values not equal to zero, but trying to plot them even on their own gives the same error.

What are we doing wrong. Can anyone help.

2 replies

12-Amethyst
March 25, 2014

3D plots are always a problem, CreateMesh is usually the easiest way to generate the data for the plot.

Both forms will give the same plot, just enable/disable to see any difference

See attached .Capture.PNG

Regards

Andy

25-Diamond I
March 25, 2014

You can't plot z5 alone, you would have to use x5 and y5, too. You may do it as in the attached.

But here you would have to set the limits of the parameters in the 3D plot format menu, tab "Quickplot data" amd thats a bit cumbersome. So I think using Createmesh as Andy has shown is the better way and gives you more control.

1-Visitor
March 26, 2014

Thanks guys. I tried the CreateMesh and I like it. Does have certain benefits and also allows an alternative method to produce answers. Appreciated.

Barend