Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
pooltool documentation
Logo
pooltool documentation

Home

  • Overview
  • GitHub

Getting Started

  • Installation
  • The Interface
  • Hello World

Contents

  • Examples
    • The 30 Degree Rule
    • Straight Shot Difficulty
  • Resources
    • Table Specification
    • Modular Physics

API Reference

  • pooltool
    • pooltool.events
    • pooltool.evolution
    • pooltool.game
    • pooltool.objects
    • pooltool.physics
    • pooltool.ptmath
      • pooltool.ptmath.roots
        • pooltool.ptmath.roots.core
        • pooltool.ptmath.roots.quadratic
        • pooltool.ptmath.roots.quartic
      • pooltool.ptmath.utils
    • pooltool.ruleset
    • pooltool.system
    • pooltool.interact
    • pooltool.layouts

Meta

  • Contributing
  • License
  • PyPI
Back to top
View this page

pooltool.ptmath.roots.quadratic¶

Functions¶

solve(a: float, b: float, c: float) → tuple[float, float][source]¶

Solve a quadratic equation \(A t^2 + B t + C = 0\) (just-in-time compiled)

Return type:

tuple[float, float]

solve_complex(a: float, b: float, c: float) → NDArray[complex128][source]¶
Return type:

NDArray[complex128]

Next
pooltool.ptmath.roots.quartic
Previous
pooltool.ptmath.roots.core
Copyright © 2025, Evan Kiefl
Made with Sphinx and @pradyunsg's Furo
On this page
  • pooltool.ptmath.roots.quadratic
    • Functions
      • solve()
      • solve_complex()