Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / Volume By Cross Sections

Author
Message
Jeff032
16
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 26th Nov 2007 04:39 Edited at: 26th Nov 2007 04:42
This is a program that I made for math class to calculate the volume of a solid by cross sections. You fill in the coefficients of an equation in the text boxes (blank is 0). Then you give it a number of sides (explained more below), a starting x, an ending x, and a step value. (Because I didn't fell like parsing a string and then integrating a whole big mess, you can only do limited polynomials, sorry)

The step value is how big each 'slice' of the solid will be.
The program takes the function you entered from the starting value to the ending value and creates a solid for which every cross section perpendicular to the x-axis has the specified number of sides, and each side has a length equal to f(x), where f is your polynomial function and x is the cross sections x position.

It them displays the volume of the solid, calculated using the volume by cross section method.

Is anyone not lost? It's kind of hard to explain. Perhaps someone can do so better.

It can be a bit buggy for some reason if part of the shape is really thin.

-Jeff



Attachments

Login to view attachments
Jeff032
16
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 26th Nov 2007 04:41
Download

Attachments

Login to view attachments
qwe
20
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 27th Jan 2008 05:06
cool, i like seeing math and science stuff on here
Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 27th Jan 2008 09:35
That's really cool. Would you mind sharing your source too?

http://3dfolio.com
andrey d
16
Years of Service
User Offline
Joined: 30th Jun 2007
Location:
Posted: 20th Feb 2008 07:51
Volume with integration by shell method...good times.
Jeff032
16
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 20th Feb 2008 15:25
Quote: "That's really cool. Would you mind sharing your source too?"


Thanks, here is the source, sorry that took so long, I kind of forgot about this thread. It is a bit hard to figure out though, and I don't remember exactly how it works, but I could try to comment it if anyone wants. The integration part is a bit ugly though (at the bottom)



Quote: "Volume with integration by shell method...good times. "


Yeah, but I don't really remember it anymore...

Login to post a reply

Server time is: 2024-04-25 05:03:43
Your offset time is: 2024-04-25 05:03:43