Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating with complex numbers
#4
(07-06-2022, 07:07 AM)BSpinoza Wrote: @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.

Excellent program, but unfortunately I have no idea anymore of the matter. I had to first look up again what a polynomial is.

I misunderstood something in the description, one should be able to solve all quadratic equations with it.

Rechnet man nicht mit reellen , sondern mit komplexen Zahlen, ist die Wurzel von -1 als i (imaginäreZahl) definiert. Die Darstellung einer komplexen Zahl ist dann Realteil + Imaginärteil. In diesem Kalkül können alle quadratischen Gleichungen gelöst werden.
Reply


Messages In This Thread
Calculating with complex numbers - by Kernelpanic - 07-05-2022, 02:05 PM
RE: Calculating with complex numbers - by Kernelpanic - 07-06-2022, 02:43 PM
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 116 01-20-2026, 10:29 PM
Last Post: Kernelpanic
  Random Numbers PhilOfPerth 16 1,792 10-19-2025, 10:26 PM
Last Post: Pete
  calculating ratios to find optimal grid layout madscijr 16 2,631 02-21-2025, 10:24 PM
Last Post: madscijr
  using pseudo-random numbers for repeatable content - kind of a neat trick madscijr 5 1,034 02-13-2025, 11:12 PM
Last Post: Pete
  random numbers badger 8 1,414 11-08-2024, 02:22 AM
Last Post: DANILIN

Forum Jump:


Users browsing this thread: 1 Guest(s)