Edit of asset "RES - Real Equation Solver" Accepted

Old/Current New/Edit
Title RES - Real Equation Solver
Description Equation solver and generator for real-valued polynomial equations up to 4th degree.

Example:
func example() -> void:
print(Res.linear(5, -10)) # Prints 2
print(Res.quadratic(1, 1, -6)) # Prints [-3, 2]
print(Res.cubic(2, -11, 12, 9)) # Prints [-0.5, 3]
print(Res.quartic(1, -10, 35, -50, 24)) # Prints [1, 2, 3, 4]

print(Reg.quartic(1, 2, 3, 4)) # Prints [1, -10, 35, -50, 24]
Equation solver and generator for real-valued polynomial equations up to degree 4 in Godot.

Methods:
Res

# Cbrt
float cbrt(x: float) static

# Solve
float solve_linear(a: float, b: float) static
Array[float] solve_quadratic(a: float, b: float, c: float) static
Array[float] solve_cubic(a: float, b: float, c: float, d: float) static
Array[float] solve_quartic(a: float, b: float, c: float, d: float, e: float) static

# Generate
Array[float] generate_linear(r1: float) static
Array[float] generate_quadratic(r1: float, r2: float) static
Array[float] generate_cubic(r1: float, r2: float, r3: float) static
Array[float] generate_quartic(r1: float, r2: float, r3: float, r4: float) static

Example:
func example() -> void:
print(Res.cbrt(27)) # Prints 3
print(Res.solve_linear(5, -10)) # Prints 2
print(Res.solve_quadratic(1, 1, -6)) # Prints [-3, 2]
print(Res.solve_cubic(2, -11, 12, 9)) # Prints [-0.5, 3]
print(Res.solve_quartic(1, -10, 35, -50, 24)) # Prints [1, 2, 3, 4]

print(Res.generate_quartic(1, 2, 3, 4)) # Prints [1, -10, 35, -50, 24]
Category Scripts
License MIT
Repository Provider GitHub
Repository Url https://github.com/neclor/godot-real-equation-solver
Issues Url https://github.com/neclor/real-equation-solver-godot/issues
Godot version Godot 4.0
Version String 4.0.1 3.1.2
Download Commit 1d6b980384c518b974db6db60624dab8a47a27ce eed9c94538822a48bc6852c95c6844fde7dc79c6
Download Url (Computed) https://github.com/neclor/godot-real-equation-solver/archive/1d6b980384c518b974db6db60624dab8a47a27ce.zip https://github.com/neclor/godot-real-equation-solver/archive/eed9c94538822a48bc6852c95c6844fde7dc79c6.zip
Icon Url https://raw.githubusercontent.com/neclor/real-equation-solver-godot/main/icon.png