Challenge: Solving the Optimisation Problem
Swipe to start coding
Let's consider a physics-related optimization problem where we need to find the maximum height reached by an object thrown vertically upward with a given initial velocity.
We have the following equation:
h = v * t - 0.5 * g * t**2
that describes the motion of an object.
Our task is to find the time t
when the object reaches its maximum height and then find the maximum height h_max
.
- Calculate the derivatives of the first and second order for the
h
function. - Find critical points of
h
function. - Check if these critical points are points of the maximum of the function
h
.
Ratkaisu
Kiitos palautteestasi!
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 4.76
Challenge: Solving the Optimisation Problem
Pyyhkäise näyttääksesi valikon
Swipe to start coding
Let's consider a physics-related optimization problem where we need to find the maximum height reached by an object thrown vertically upward with a given initial velocity.
We have the following equation:
h = v * t - 0.5 * g * t**2
that describes the motion of an object.
Our task is to find the time t
when the object reaches its maximum height and then find the maximum height h_max
.
- Calculate the derivatives of the first and second order for the
h
function. - Find critical points of
h
function. - Check if these critical points are points of the maximum of the function
h
.
Ratkaisu
Kiitos palautteestasi!
Awesome!
Completion rate improved to 4.76single