Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the nonholonomic equation of motion chapter #155

Merged
merged 4 commits into from
May 11, 2023

Conversation

moorepants
Copy link
Owner

@moorepants moorepants commented May 11, 2023

Minor update for this chapter.

@moorepants moorepants changed the title Update the nonholonoic equation of motion chapter Update the nonholonomic equation of motion chapter May 11, 2023
@Peter230655
Copy link

Peter230655 commented May 11, 2023

Below the heading Numerical Evaluation is a Warning.

There you write:
sym_mat = sm.Matrix([[a, b], [c, d]])
eval_sym_mat = sm.lambdify((a, b, c, d), sym_mat)
num_mat = eval_sym_mat(1.0, 2.0, 3.0, 4.0)
num_mat

Would it make sense to add cse=True?
I guess with this example it does not matter, but I think, 50% of my examples would take 'forever' to integrate without this.

@moorepants
Copy link
Owner Author

That is a different chapter than this, but I think I should use cse=True in all lambdify calls after the SymPy chapter (where I originally introduce lambdify).

@Peter230655
Copy link

Sorry, I still get confused, where to comment!

@moorepants moorepants merged commit 4f2f30a into master May 11, 2023
@moorepants moorepants deleted the update-nonholo-eom branch May 11, 2023 15:29
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