#Im supposed to calculate the distance traveled by a pendulum and I need the formula

99 messages · Page 1 of 1 (latest)

upper crescent
#

The length of the pendulum is 50cm, the displacement is 10cm and it is on earth but the gravity is rounded up to 10. I don't need the answer, I just need the formula since I need it for a python coding course

modest shoreBOT
#
  1. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  2. Wait patiently for a helper to come along.
  3. If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:
    +close
    
  4. Feel free to nominate the person for helper of the week in #helper-nominations
  5. Do not ping the Moderators, unless someone is breaking the rules. **Do not ping the Helper Moderators, unless there is a conflict between helpers.
  6. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
wanton spindle
#

are you looking for the arc length of the path the end of the pendulum takes?

upper crescent
#

Im looking for the arc length after 3 seconds

wanton spindle
#

length or displacement?

upper crescent
#

the displacement is 10cm

wanton spindle
#

right, to start with

#

if we're solving for final displacement the answer is going to be different than if we solve for the total distance the pendulum travels

#

the final displacement is only relative to its start and end position

upper crescent
#

that makes sense yea

#

the formula i found so far is A sin(2pit/T)

#

but when I put it in python the number that comes out is not the exact same as what its supposed to be as annotated

#

hold on ill screenshot what I have

wanton spindle
#

actually not even that

#

use cos in that function

upper crescent
#

when I do that makes it even worse

wanton spindle
#

what is the lower case t in your formula?

#

angular displacement = Acos(ωt), where ω = 2pi/T

upper crescent
#

1 second is lower case t

wanton spindle
#

is 3 seconds your period, or is that the total time the pendulum is swinging for

wanton spindle
upper crescent
#

oh just cause it was in the formula I saw, I know it doesnt make a difference

#

the answer that is supposed to come out is annotated as 0.06599551597515042

#

the one I get with my formula is 0.06249700733728915

#

and the one I get with Cos is 0.07806487093362051

wanton spindle
#

are you inputting degrees instead of radians?

upper crescent
#

i am not inputting any degrees

#

it says the pendulum is initially at reat

#

rest

wanton spindle
#

yes, but it is starting with a 10cm displacement (i imagine from statinc equilibrium, unless you have a wall that the pendulum is sitting relative to)

upper crescent
#

i dont

wanton spindle
#

draw this out in a fbd itll be much easier

#

this is more physics than it is math

upper crescent
#

yea i just started uni

#

i wish i knew what fbd means

wanton spindle
#

free body diagram

upper crescent
#

the circle diagram right

wanton spindle
#

its just a simple drawing of the system and any forces

#

no not a venn diagram

upper crescent
#

no i know

wanton spindle
#

lemme make one and demonstrate what i mean

upper crescent
#

i mean the circle with the pendulum in it

#

thanks

wanton spindle
#

actually you dont need to worry about forces here

#

ignore the right thing

#

so im assuming you need to find the displacement m travels after 3 seconds?

upper crescent
#

yea

wanton spindle
#

So your formula should look like A * cos(ωt + θ)

upper crescent
#

but how do I calculate theta

wanton spindle
#

basic trig, its arctan(50/10)

upper crescent
#

arctan length / displacement?

wanton spindle
#

no excuse me its arctan(10/50)

upper crescent
#

other way around

wanton spindle
#

so tanθ = opp/adj

#

we know the lengths of both the opposite and adjacent sides which is why i picked tangent

#

then use the inverse operator to solve for theta

#

so roughly 0.197

#

now you need to solve for omega, which is 2pi/T

#

t is the period, the time it takes the pendulum to complete one swing back and forth

#

you'll need to use some angular kinematics equations to find that

upper crescent
#

i already got omega and the period

wanton spindle
#

oh perfect then youre done

upper crescent
#

wellllll

#

i still get the wrong answer

wanton spindle
#

are you using t = 3

#

and A = 10

upper crescent
#

yes

wanton spindle
#

how did you calculate omega

upper crescent
#

the period or frequency

#

for us omega_0 is meant to be frequency

wanton spindle
#

oh thats why

#

omega is 2pi times the frequency

upper crescent
#

which i did with 1/(2pi square root of (L/g))

wanton spindle
#

multiply your current value of omega times 2pi

upper crescent
#

it comes out even more wrong

#

lemme take a picture of my code i hope its understandable

wanton spindle
#

sweet python

upper crescent
#

could it possibly be that i have the right answer and my prof is wrong

wanton spindle
#

g/L = omega^2

#

aka omega = sqrt(g/L)

upper crescent
#

omega is the frequency here or period

wanton spindle
#

neither

#

angular frequency

upper crescent
#

yea my brain is melting

wanton spindle
#

sorry mate

#

id do some youtubing on simple harmonic motion before attempting this, should clear things up

#

im still not 100% sure what your prof is asking tbh

upper crescent
#

ill do that then, i spent 6 hours today already on this one problem despair

#

thanks for your help man

upper crescent
gloomy shoreBOT
#

@upper crescent

<:HelpIcon:1304095958283321385>| Help Reminder

Hello devlsadvocate, this is a friendly reminder that your thread has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command.

upper crescent
#

oh my fault B

#

+close

gloomy shoreBOT
# upper crescent +close
Please thank your Helpers before closing!

Please thank the helpers who assisted you by clicking the buttons below. You can thank each helper only once. Once you're done, click "Close Post" to close this thread.