Open dependabot[bot] opened 4 months ago
import sympy as sp
A, B, C, D = sp.Point('A'), sp.Point('B'), sp.Point('C'), sp.Point('D')
AB = sp.Line(A, B) CD = sp.Line(C, D) AC = sp.Line(A, C)
def are_parallel(line1, line2): return line1.is_parallel(line2)
def oriented_angle(p1, p2, p3): return sp.geometry.util.oriented_angle(sp.Line(p1, p2), sp.Line(p2, p3))
def check_statement_1(A, B, C, D): if are_parallel(AB, CD) and AB != CD: return oriented_angle(A, B, C) == oriented_angle(D, C, B) return False
def check_statement_2(A, B, C, D): if B in AC: return oriented_angle(D, B, A) + oriented_angle(D, B, C) == sp.pi return False
def check_statement_3(A, B, C, D): return oriented_angle(A, B, C) + oriented_angle(B, C, D) == 0 and are_parallel(AB, CD)
def check_statement_4(A, B, C, D): return oriented_angle(A, B, C) + oriented_angle(B, C, D) == sp.pi and are_parallel(AB, CD)
A = sp.Point(0, 0) B = sp.Point(1, 1) C = sp.Point(2, 2) D = sp.Point(3, 3)
print("Affirmation 1 : ", check_statement_1(A, B, C, D)) print("Affirmation 2 : ", check_statement_2(A, B, C, D)) print("Affirmation 3 : ", check_statement_3(A, B, C, D)) print("Affirmation 4 : ", check_statement_4(A, B, C, D))
Bumps zipp from 3.17.0 to 3.19.1.
Changelog
Sourced from zipp's changelog.
Commits
6d1cb72
Finalizefd604bd
Merge pull request #120 from jaraco/bugfix/119-malformed-pathsc18417e
Add news fragment.58115d2
Employ SanitizedNames in CompleteDirs. Fixes broken test.564fcc1
Add SanitizedNames mixin.79a309f
Add some assertions about malformed paths.2d015c2
Merge https://github.com/jaraco/skeletona595a0f
Rename extras to align with core metadata spec.608f90a
Finalize3a22d72
Merge pull request #118 from jaraco/feature/is-symlinkDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show