Help coming up with a program idea

Click For Summary

Discussion Overview

The discussion revolves around generating ideas for a program that utilizes a calculus library in Java. Participants explore various physics-related simulations and calculations that could be implemented, considering their knowledge of calculus and physics. The scope includes theoretical applications, programming challenges, and potential for future development.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Homework-related
  • Mathematical reasoning

Main Points Raised

  • One participant suggests creating a program that simulates the dropping of a ball, graphing velocity and acceleration over time as gravity acts on it.
  • Another proposes a more complex simulation involving gravitational interactions between two bodies, allowing user input for mass and distance, with potential extensions to include collisions.
  • There is consideration of simulating circular orbits, with some participants noting that ellipses would be more complicated.
  • A simpler idea involves calculating the force and work required to stretch or compress a spring, which could be integrated into the program.
  • One participant mentions a 3D projectile problem involving a cannon, factoring in air drag and the Earth's rotation, although this may exceed basic physics knowledge.
  • Another idea involves simulating the motion of vehicles or robotic arms, starting simple and increasing complexity based on user interest.
  • Participants discuss the potential use of Kepler's laws and geometry for modeling elliptical orbits, as well as the possibility of using a different open-source language, NetLogo, for simulations.
  • A later post describes progress on a GUI that calculates work and force for spring compression and object interaction, but notes limitations in the calculus library regarding integration and differentiation.

Areas of Agreement / Disagreement

Participants express multiple competing views on the best program ideas, with no consensus reached on a single approach. Various suggestions are made, and participants build upon each other's ideas, indicating a collaborative exploration rather than a definitive solution.

Contextual Notes

Participants acknowledge limitations in the calculus library, particularly regarding integration and differentiation capabilities. There is also uncertainty about the level of calculus knowledge required for certain simulations, especially in 3D modeling.

Who May Find This Useful

This discussion may be useful for individuals interested in programming, physics simulations, and the application of calculus in software development, particularly those looking for project ideas or collaborative input.

Obliv
Messages
52
Reaction score
1
Hello, I have a working calculus library for java and want to use it in a program. I don't have very many ideas. I have limited Calc. II knowledge but a strong understanding of Calc. I. I have an intermediate understanding of java (took 3 courses at my high school of it), and a solid algebraic physics background. I want to fuse all of my knowledge into this program but need help with ideas. I was thinking perhaps I could make a physics simulation involving calculus? I don't know of one that would be suitable. Any suggestion is appreciated, thank you. (I was thinking of brownian motion but not sure how well that would work)
 
  • Like
Likes   Reactions: RaulTheUCSCSlug
Technology news on Phys.org
A interesting and very easy one would probably be making program that interacts with dropping a ball at a certain height and graphs velocity and acceleration as a function of time as gravity acts on it. This would use calculus to figure out the acceleration. Another idea based off this but perhaps a bit more "fun" and complicated would be to create one that uses gravity between two bodies and the user is able to input the values of the bodies and the distance away from them. You could later probably add on to this greatly with collisions and what not.
 
Yeah I also considered gravity between objects, maybe even circular orbits (ellipses would be much more complicated, right?). I want an idea that has room for re-use and improvement, so I am considering gravitation between objects. I will look into the other avenues it can lead for the future (like I mentioned perhaps orbits, or determining thrust force required to travel a certain distance away from an object and allow the user to access the gravitational force at each point along the way). Is this a good idea? The library has a graphing class and a 3D graphing class (no idea how to use that, assuming calc 3 knowledge required?), if that is significant.

in case anyone is interested, the library is open-source linked here: https://code.google.com/p/javacalculus/
 
Another force idea, a bit simpler than dealing with multi-dimensional orbits, would be just stretching out a spring. The force required to expand the spring another unit dx would increase as the the spring grew longer. You could calculate the total work required to stretch or compress the spring some input distance from its equilibrium point, or even from some other input starting length.
 
Somewhere in between a simple spring and a complex 3-d orbit could be a 3-d projectile problem, such as a large cannon being fired into the air at some angles. You could consider maybe two orders of air drag, and even the rotation of the Earth out from under the projectile (this last derivation is likely beyond algebra based physics, but the final form is common can be looked up).
 
A class of problems the has a lot of application in engineering is to simulate the motion of an automobile, an airplane, or a robotic arm, given some control inputs. You might be able to start out simple. Then let it grow in complexity and realism in whatever directions grab your interest. I think you could find groups on the internet that share interests in that.
 
Obliv said:
Yeah I also considered gravity between objects, maybe even circular orbits (ellipses would be much more complicated, right?). I want an idea that has room for re-use and improvement, so I am considering gravitation between objects. I will look into the other avenues it can lead for the future (like I mentioned perhaps orbits, or determining thrust force required to travel a certain distance away from an object and allow the user to access the gravitational force at each point along the way). Is this a good idea? The library has a graphing class and a 3D graphing class (no idea how to use that, assuming calc 3 knowledge required?), if that is significant.

in case anyone is interested, the library is open-source linked here: https://code.google.com/p/javacalculus/

For elipses I am pretty sure you could use Kepler's law and some geometry. As for if you wanted to make a 3D model, I'm not sure how much calc3 knowledge you would need. If you took calc 1 nd 2 then the basic idea to get you going shouldn't be to hard.

Also you should try this open source language called NetLogo, we used it in high school to create models and simulations and has the ability to make 3D simulations as well. Like I said, it is open source and many other people have used it for some interesting simulations. You could even use a currently existing one and improve upon it! Keep me up to date on what you end up doing.
 
I ended up making a simple gui that asks the user which calculation he/she wants to perform: finding work and force required for compressing/stretching a spring of an inputted spring constant. Or, the work and force required to bring two objects further away from each other or closer together. The program was going well until I realized my calc library didn't have an implementation of integration and differentiation yet lol (the author tried to return a rational expression instead of a numerical approximation) so I looked online and borrowed an algorithm to numerically integrate a function. The algorithm was an adaptive quadrature (I also tried trapezoid rule, simpson's rule, ridder's algorithm) and worked fine. What I want to work on in the future is: a more complicated visual (possibly an actual simulation instead of just a calculation), complexity in what it can do (perhaps numerical differentiation or multiple parameters). Thank you for the suggestions everyone.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
21
Views
14K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 22 ·
Replies
22
Views
12K
Replies
4
Views
2K
Replies
10
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K