Skip to content

Commit

Permalink
Implementing change suggested in #435 (#436)
Browse files Browse the repository at this point in the history
Co-authored-by: Drew Lewis <30658947+siwelwerd@users.noreply.github.com>
  • Loading branch information
StevenClontz and siwelwerd authored Dec 6, 2024
1 parent e9e8c25 commit e224475
Showing 1 changed file with 2 additions and 2 deletions.
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":
slope2=slope
elif orientation1=="perpendicular":
elif orientation2=="perpendicular":
slope2=-1/slope
new_line = y-point5[1]==(x-point5[0]).mul(slope2,hold=True)

Expand Down

0 comments on commit e224475

Please sign in to comment.