Skip to main content
19-Tanzanite
September 23, 2024
Solved

Roots of polynomial #3 and How to find unique values into a vector/matrice?

  • September 23, 2024
  • 2 replies
  • 2377 views

Hi,

How to find all roots of this equation:

Cornel_0-1727076079588.png

Best answer by ttokoro

image.png

Depend on TOL. So need UniqueP function to select 4.

image.pngimage.pngimage.pngimage.png

2 replies

Cornel19-TanzaniteAuthor
19-Tanzanite
September 23, 2024

Hm...I think I found a way:

Cornel_0-1727076572586.png

 

We can see that only these 4 values (roots) are repeated: -0.439-1.077i, 0.584-0.431i, 0.274+0.784i, and -0.648+0.852i.

Now I am interested in how to extract/retain only those unique 4 values?

Cornel_2-1727076785580.png

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
September 23, 2024

image.png

Depend on TOL. So need UniqueP function to select 4.

image.pngimage.pngimage.pngimage.png

t.t.
Cornel19-TanzaniteAuthor
19-Tanzanite
September 24, 2024

A(x) is not an array?

I do not know how to think at the differences between the two. I see that when defining x as not integer values (0.1, 0.2, 0.3, etc), then I cannot use like Cx and also I cannot use further UniqueP function. On the other hand when defining range variable as y (1,2,3, etc, integer values), then I can use UniqueP function but only when defining with matrix index as B. Maybe someone can explain a little bit this function UniqueP, and also why I cannot use A(x) with UniqueP function.

Cornel_2-1727161703325.png

23-Emerald IV
September 23, 2024

LucMeekes_0-1727113676435.png

LucMeekes_1-1727113691494.png

LucMeekes_2-1727113735783.png

Success!
Luc

 

25-Diamond I
September 23, 2024

Interesting!

Needless to say that the symbolic solve does not work that way in non-MC11 versions.
The symbolic would switch to float mode and returns just one solution.

Based on the graphic, it is difficult to say whether the four spikes only 'touch' the floor plan at one point (just four solutions), or whether they penetrate it and the solution consists of four circle-like shapes. In the latter case, however, there would be an infinite number of solutions, not just 43... Can you plot the solutions in the Gauß-plane?

Werner_E_0-1727122883973.png

 

23-Emerald IV
September 23, 2024

I guess you want to see this:

LucMeekes_0-1727130223029.png

or (sorted on angle) like:

LucMeekes_1-1727130262777.png

 

Success!
Luc