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

Implementing change suggested in #435 #436

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/precalculus/exercises/outcomes/LF/LF4/generator.sage
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class Generator(BaseGenerator):
point5=(point5[0],point5[1]+choice([-4..-1,1..4]))

slope = -1*line.lhs().coefficients(x)[1][0]/line.lhs().coefficients(y)[1][0]
if orientation1=="parallel":
if orientation2=="parallel":
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, much better!

slope2=slope
elif orientation1=="perpendicular":
elif orientation2=="perpendicular
siwelwerd marked this conversation as resolved.
Show resolved Hide resolved
slope2=-1/slope
new_line = y-point5[1]==(x-point5[0]).mul(slope2,hold=True)

Expand Down
Loading