Physics based programming problem sets

In summary, the conversation revolved around the search for resources similar to the website "Project Euler" but with a focus on physics topics. The conversation also touched upon the different categories of problems in physics and mathematics, with a mention of the unsolved problem of finding the nth prime number. The individual looking for resources clarified that they were interested in finding physics-themed problem solving activities that require or encourage the use of programming.
  • #1
hudsonj
4
2
TL;DR Summary
Looking for resources similar to the website "Project Euler" but based around physics topics.
Was wondering if anyone knew of any good resources with programming challenges akin to the website "Project Euler" (about page found here). To be more specific, I'm looking for something consisting of problems centred around physics topics that would require some level of problem solving and programming to solve in a reasonable time frame, i.e. deriving and algorithm for finding the nth prime number instead of just listing them off.
 
Technology news on Phys.org
  • #2
hudsonj said:
TL;DR Summary: Looking for resources similar to the website "Project Euler" but based around physics topics.
I don't think there are any. This is because we can categorise problems in Physics as follows:
  • Problems with an analytic solution
    These do not need programming skills to solve.
  • Problems with a deterministic solution
    These are described with differential equations so the programming skills required to solve are "write an algorithm to solve differential equations". This is an interesting and complicated problem in its own right, but it would not make a very interesting series of challenges. If you are interested in writing programs to solve differential equations you should study this topic, not try to work out algorithms yourself.
  • Problems without a deterministic solution
    Techniques do exist to model these, however as there is no deterministic solution how would the website check your results?

I am confused by your reference to
hudsonj said:
deriving and algorithm for finding the nth prime number instead of just listing them off.
This is not a problem "centered around a physics topic". Also note that it is an unsolved (and generally believed to be unsolvable) problem in mathematics.
 
  • Like
Likes hudsonj and Vanadium 50
  • #3
pbuk said:
I don't think there are any. This is because we can categorise problems in Physics as follows:
  • Problems with an analytic solution
    These do not need programming skills to solve.
  • Problems with a deterministic solution
    These are described with differential equations so the programming skills required to solve are "write an algorithm to solve differential equations". This is an interesting and complicated problem in its own right, but it would not make a very interesting series of challenges. If you are interested in writing programs to solve differential equations you should study this topic, not try to work out algorithms yourself.
  • Problems without a deterministic solution
    Techniques do exist to model these, however as there is no deterministic solution how would the website check your results?

I am confused by your reference to

This is not a problem "centered around a physics topic". Also note that it is an unsolved (and generally believed to be unsolvable) problem in mathematics.
That's a shame.

The reference I gave was the description of one of the problems found on the websites archive, which you can find here, and is very much solvable.

My intention was to give an example of the type of problem(s) I was looking for, being the creative application of the user's understanding of programming and the relevant topic(s) to solve a problem that would otherwise be cumbersome or even impossible to solve without a computer.

So really, I'm looking for physics themed problem solving activities that require or at least heavily encourage some level of programming to solve in a reasonable time span, as is the intention of Project Euler but with an emphasis on topics within maths, sorry for any misunderstanding.

Thanks anyway for your response.
 
  • #4
We had a problem one time in Classical Mechanics class that called for a numerical solution and everyone was of the opinion that there was no analytic one until a student produced it. Everyone was amazed but looking back some years earlier, the prof found that another person had discovered it first.

The suspicion was that the authors of the book knew it but felt this particular problem was ideal for teaching numerical problem solving and so never mentioned that one existed.
 
  • #5
hudsonj said:
The reference I gave was the description of one of the problems found on the websites archive, which you can find here, and is very much solvable.
Yes I am familiar with Project Euler. Problem 7 is of course solvable: we find the Nth prime by counting primes until we get to N, in other words by listing them off. But you suggested that you could find
hudsonj said:
[an] algorithm for finding the nth prime number instead of just listing them off.

hudsonj said:
My intention was to give an example of the type of problem(s) I was looking for, being the creative application of the user's understanding of programming and the relevant topic(s) to solve a problem that would otherwise be cumbersome or even impossible to solve without a computer.
Yes, there are lots of such problems in Maths. (Deterministic) Problems in Physics fall into the following categories:
  • finding the root(s) of an equation
  • finding eigenvalues of a matrix
  • finding the solution to a set of simultaneous equations
  • integrating a set of ordinary differential equations
  • integrating a set of partial differential equations
None of these require any "creative application of the user's understanding of programming", they just require the abilities to know which algorithm to apply from a library and to configure the problem to fit the library's API.

If you disagree, perhaps you could give an example of a problem in Physics that suits your criteria, and we can suggest somewhere you might find other such problems.
 
  • Like
Likes hudsonj

1. What is physics-based programming?

Physics-based programming is a type of computer programming that incorporates principles from physics to solve problems and create simulations. It involves using mathematical models and algorithms to simulate real-world physical phenomena.

2. What are some examples of physics-based programming problem sets?

Some examples of physics-based programming problem sets include creating simulations of fluid dynamics, particle systems, and rigid body dynamics. Other examples include developing physics-based games or solving optimization problems using physics principles.

3. How does physics-based programming differ from traditional programming?

While traditional programming focuses on creating algorithms and software for specific tasks, physics-based programming involves understanding and simulating real-world physical phenomena. It requires a strong understanding of physics concepts and principles, as well as knowledge of programming languages and tools.

4. What skills are necessary for solving physics-based programming problems?

Solving physics-based programming problems requires a combination of skills, including a solid understanding of physics, proficiency in programming languages, and problem-solving abilities. It also helps to have experience with mathematical modeling and simulation techniques.

5. Can physics-based programming be applied to other fields besides physics?

Yes, physics-based programming can be applied to other fields such as engineering, biology, and chemistry. It can also be used in various industries, including video game development, animation, and virtual reality. The principles of physics-based programming can be applied to simulate and solve problems in any field that involves physical systems.

Similar threads

  • Programming and Computer Science
Replies
22
Views
9K
  • Sticky
  • Programming and Computer Science
Replies
13
Views
4K
  • Programming and Computer Science
Replies
15
Views
1K
  • Programming and Computer Science
Replies
29
Views
3K
  • Programming and Computer Science
Replies
29
Views
5K
Replies
4
Views
790
  • General Math
Replies
13
Views
1K
  • STEM Academic Advising
Replies
4
Views
2K
  • Programming and Computer Science
Replies
9
Views
2K
  • Programming and Computer Science
Replies
4
Views
7K
Back
Top