Skip to main content

Questions tagged [physics]

For challenges pertaining to problems in the field of Physics.

22 votes
48 answers
4k views

Introduction: Two resistors, R1 and R2, in parallel (denoted R1 || R2) have a combined ...
Stewie Griffin's user avatar
40 votes
13 answers
5k views

Minecraft has a fairly unique lighting system. Each block's light value is either one less than the brightest one surrounding it, or it is a light source itself. Your task is to write a method that ...
Chspsa's user avatar
  • 691
37 votes
35 answers
5k views

Draw the parabolic trajectory of a thrown ball. The input is the ball's initial upward velocity, a positive integer v. Every second, the ball moves ...
xnor's user avatar
  • 150k
106 votes
16 answers
6k views

One nice property of a Turing-complete language is that it can be used to write any program, up to and including the simulation of the entire Universe. Your job is to do exactly that: write a program ...
vsz's user avatar
  • 8,143
13 votes
12 answers
3k views

Imagine throwing a rock into a pond. You get to see perfect circles of ripples spreading out over the pond, bouncing off of each other. Of course, nothing can be as serene as that in coding, but, we ...
Chspsa's user avatar
  • 691
22 votes
14 answers
3k views

The 3Blue1Brown Youtube channel released a video a year ago called "Why do colliding blocks compute pi?" which describes a model where a block A of mass \$a\$ ...
Peter Kagey's user avatar
  • 8,165
18 votes
10 answers
2k views

Let us consider the following representation of the periodic table. ...
aluriak's user avatar
  • 321
24 votes
22 answers
2k views

To check whether a list of non-negative integers is balanced, one can imagine putting respective weights on a board and then try to balance the board on a pivot such that the summarized relative ...
Laikoni's user avatar
  • 26.4k
12 votes
27 answers
2k views

In special relativity, the velocity of a moving object relative to another object that is moving in the opposite direction is given by the formula: \begin{align}s = \frac{v+u}{1+vu/c^2}.\end{align} <...
user avatar
39 votes
16 answers
3k views

Overview Given a 3 line string, figure out if the structure falls to the left, balances, or falls to the right. Input structure You can imagine the structure as metal rod with stuff on top, all being ...
Daffy's user avatar
  • 1,075
46 votes
19 answers
5k views

Why a Simulator? Kids these days don't have the time nor the ambition to actually go and stack boxes on the see-saw or play around with balancing physical objects. This leaves lots of room in the ...
turbulencetoo's user avatar
20 votes
13 answers
2k views

Objective Given a dimension of an SI unit, convert the Lorentz-Heaviside version of a Planck unit \$1\$ into SI metric. What is a Planck unit? Planck units are a set of units of measurement. It ...
Dannyu NDos's user avatar
  • 7,381
29 votes
8 answers
6k views

Given the 2-dimensional positions and velocities of a pair of billiard balls right before impact, calculate their velocities after a perfectly elastic collision. The balls are assumed to be ideal ...
ngn's user avatar
  • 15.6k
19 votes
10 answers
5k views

The gravitational binding energy of a planet is the amount of energy required to separate every tiny piece of it so that no piece will orbit or collide with another piece. For a uniform sphere, ...
Nissa's user avatar
  • 3,664
19 votes
10 answers
1k views

Introduction tl;dr Continuously output the current distance from the Earth to the Sun. Simplified, the orbit of the Earth around the Sun is an ellipse. So the actual distance between both is ...
insertusernamehere's user avatar

15 30 50 per page