Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating with complex numbers
#2
@Kernelpanic:
Your program only solves quadratic equations with real solutions (roots).
If you try to solve a quadratic equation with complex roots, you will get an error.

example:
x^4 - 4 x +7 = 0
This equation has two complex roots:
  x_1 = 2 - sqr(3i)
  x_2 = 2 + sqr(3i)

I have attached a program, which solves the roots of a polynomial up to degree 10.
It gives in the most cases all roots of a polynomial and uses the Lin-Bairstow-Method.
Reply


Messages In This Thread
Calculating with complex numbers - by Kernelpanic - 07-05-2022, 02:05 PM
RE: Calculating with complex numbers - by BSpinoza - 07-06-2022, 07:07 AM
RE: Calculating with complex numbers - by bplus - 07-06-2022, 04:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings - Numbers Kernelpanic 0 114 01-20-2026, 10:29 PM
Last Post: Kernelpanic
  Random Numbers PhilOfPerth 16 1,783 10-19-2025, 10:26 PM
Last Post: Pete
  calculating ratios to find optimal grid layout madscijr 16 2,620 02-21-2025, 10:24 PM
Last Post: madscijr
  using pseudo-random numbers for repeatable content - kind of a neat trick madscijr 5 1,033 02-13-2025, 11:12 PM
Last Post: Pete
  random numbers badger 8 1,407 11-08-2024, 02:22 AM
Last Post: DANILIN

Forum Jump:


Users browsing this thread: