Skip to content

added an equation for length from period - #45

Open
jvynn wants to merge 1 commit into
jatkinson1000:mainfrom
jvynn:length-from-period
Open

added an equation for length from period#45
jvynn wants to merge 1 commit into
jatkinson1000:mainfrom
jvynn:length-from-period

Conversation

@jvynn

@jvynn jvynn commented Jul 16, 2026

Copy link
Copy Markdown

This is addressing issue #32.
It adds an equation for length of pendulum from period

@jatkinson1000 jatkinson1000 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jvynn this is a great PR, linking to the issue you opened.

I have made a "suggestion" in my code review that you can try merging into your code using the GitHub Pull Request interface.

float
length [m] of the pendulum
"""
return (period / (2.0 * np.pi)) ** 2 * 9.81

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider moving the 9.81 to the front to be a little more clear when reading that it is not part of the exponent.

Suggested change
return (period / (2.0 * np.pi)) ** 2 * 9.81
return 9.81 * (period / (2.0 * np.pi)) ** 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants