Pages

Friday, December 1, 2023

New











Thursday, November 30, 2023

Field











Speed Input




Canvas



Orbit

Central Field of Gravitation

Central Field of Gravitation Simulation





Saturday, November 11, 2023

document.write

Print 'Hello World'



<button onclick="showHelloWorld()">Show "Hello World"</button> 
<button onclick="eraseHelloWorld()">Erase "Hello World"</button>
<p id="demoHelloWorld"></p>
<script>
    function showHelloWorld() {
        document.getElementById("demoHelloWorld").innerHTML = "Hello World";}
   function eraseHelloWorld() {
        document.getElementById("demoHelloWorld").innerHTML = "";}
</script>

Thursday, November 9, 2023

N-Point Star

N-Point Star

Sunday, November 5, 2023

Калькулятор задачи по физике

Решение физической задачи

Задача

Определите конечную высоту (H) объекта, когда единственной силой, действующей на него, является сила тяжести (F = mg), зная его начальную скорость (Vₒ), начальную высоту (Hₒ) и конечную скорость (V).

Решение

Мы можем обосновать решение, рассмотрев закон сохранения механической энергии в отсутствие трения. В этом сценарии полная механическая энергия объекта остается постоянной.

Закон сохранения механической энергии можно выразить следующим образом:

E0 = E

Где:

E0 — начальная механическая энергия объекта, а

E — конечная механическая энергия объекта.

Начальная механическая энергия состоит из суммы начальной кинетической энергии K0 = ½mv₀² и начальной потенциальной энергии U0 = mgh₀.

Конечная механическая энергия состоит из суммы конечной кинетической энергии K = ½mv² и конечной потенциальной энергии U = mgh.

Итак, закон сохранения механической энергии можно выразить так:

½mv² + mgh = ½mv₀² + mgh₀

См. следующее алгебраическое преобразование уравнения, чтобы найти выражение для неизвестного значения:

½mv² + mgh = ½mv₀² + mgh₀

mv² + 2mgh = mv₀² + 2mgh₀

v² + 2gh = v₀² + 2gh₀

v²/(2g) + h = v₀²/(2g) + h₀

h = v₀²/(2g) + h₀ - v²/(2g)

Расчет

Введите следующие значения:




Physics Problem Calculator

Problem

Determine the final height (H) of an object when the only force acting on it is gravity (F = mg), given its initial velocity (Vₒ), initial height (Hₒ), and final velocity (V).

Solution

We can justify the solution by considering the law of conservation of mechanical energy in the absence of friction. In this scenario, the total mechanical energy of the object remains constant, which includes both kinetic energy and potential energy.
The law of conservation of mechanical energy can be expressed as follows
E0 = E
Where:

E0 is the initial mechanical energy of the object, and
E is the final mechanical energy of the object.
Initial mechanical energy consists of the sum of initial kinetic energy 
K0= ½mv₀² 
and initial potential energy 
U0= mgh₀

The final mechanical energy consists of the sum of the final kinetic energy 
K = ½mv² 
and final potential energy 
U = mgh.

So, the law of conservation of mechanical energy can be expressed as:

½mv² + mgh = ½mv₀² + mgh₀

See the following algebraic transformation of the equation to find the expression for the unknown value: 
½mv² + mgh = ½mv₀² + mgh₀,
mv² + 2mgh = mv₀² + 2mgh₀,
v² + 2gh = v₀² + 2gh₀,
v²/(2g) + h = v₀²/(2g) + h₀,
h = v₀²/(2g) + h₀ - v²/(2g) .

Calculation

Enter the following values:




Saturday, November 4, 2023

Bar Chart Example

D3.js Bar Chart Example

D3.js Bar Chart Example

Mandelbrot Fractal 2

Mandelbrot Fractal

Mandelbrot Fractal

Mandelbrot Fractal

SImulation

Collisions with constant momentum

Collisions

Tuesday, October 31, 2023

Perfectly Inelastic Collision

Perfectly Inelastic Collision Calculation



Perfectly inelastic collisions in one-dimensional motion.
Mass m moving at speed v₁ collides with mass km moving at speed v₂.
The collision is completely inelastic.
Velocity after the collision is vf.

k = 9.58
v1 = 8.47 m/s
v2 = -4.74 m/s
Calculate vf

Solution:
m v₁ + km v₂ = (m+km) vf
m (v₁ + k v₂) = m(1+k) vf
(v₁ + k v₂) = (1+k) vf
vf = (v₁ + k v₂) / (1+k)

Calculation:




Velocity after the collision (vf):

Saturday, October 28, 2023

Sum Calculator

Sum:

Code:
<div>
<label for="numberInput2">Enter numbers (separated by spaces):</label>
<input type="text" id="numberInput2">
</div>
<button id="calculateSum2">Calculate Sum</button>
<p id="result">Sum: <span id="sumValue">0</span></p>
<script>
document.getElementById('calculateSum2').addEventListener('click', function () {
var input = document.getElementById('numberInput2').value;
var numbers = input.split(' '); // Split input by spaces
var sum = 0;
for (var i = 0; i < numbers.length; i++) {
var num = parseFloat(numbers[i]);
if (!isNaN(num)) {
sum += num;
}
}
document.getElementById('sumValue').textContent = sum;
});
</script>

Sum Calculator

Sum Calculator

Sum: 0

Graph Plotter 3

Graph Plotter

Graph Plotter

Graph Plotter

Graph Plotter

Graph Plotter

Scatter Chart

Graph Plotter

Plot Graph

Quiz Question