Alexey Ivanov

## 1015 Reputation

10 years, 53 days

## Zeros of the derivative...

Why an optimization package? The zeros of the derivative of the Gamma function indicate its extreme values. Having found the zeros of the derivative in the desired range, you will select the amplitudes you need.
Or did I not understand something?

## I wish......

@vv
I wish I could see all these pictures at school. In due time, of course.
I wanted to see what the area of polynomial roots looks like and how to graphically interpret the presence of complex and real roots in the same area. Well, with a reasonable dimension, I think it is possible to somehow understand what's what, using various examples.
By the way, going around the circle, you can find all the branches leading to solutions, and go to them. (As an alternative solution.)

## Just find out how many solutions?...

Have you tried using the nops procedure?
For example:
SN:=(solve(..));
nops(SN);

## @mmcdara   It's okay. This...

@mmcdara   It's okay. This is done intentionally - this can be seen from the text of the program: look at the display, where graphs of different types are located in one direction and in the opposite direction.
(This is if I understood you correctly, because I use an online translator.)

## @Pepini Apparently I couldn't f...

@Pepini
Apparently I couldn't figure out what the question was.
The spatial method (Draghilev's method) finds the same:
[-1.675392259, 0.108903871]

## @Pepini  Basically, you have o...

@Pepini
Basically, you have one equation and one variable. If you want to view your expressions in 3d, then for example

```restart; with(plots):
a:= 10;
smin:= -3; smax:= 2;
f:= exp(t)+exp(-t^2-2*t);
g:= exp(-t^2)+exp(-t^2-2*t);
spacecurve([f, g, t], t = smin .. smax, thickness = 3, view = [-a .. a, -a .. a, -a .. a], axes = normal, color = red)
```

(Formally, f, g, t can act as independent variables, and you will consider their original expression as a system of two equations with three variables.)

@mmcdara Thanks a lot for your additional work. I will try to adopt your technique, but, most likely, as usual for me, in the form of a ready-made block. Of course, to some extent I understand your text, but I still never can work at such high level. Maple is something fantastic, and that's why I manage to somehow show the some algorithms that were once interesting to me. I do not hide, I am not a professional.

## @tomleslie  Oh, I get it, than...

@tomleslie  Oh, I get it, thanks.

## Yes...

@mmcdara  Yes, thanks, everything works now. (But hard for me to understand the text, because I work with Maple at a very amateur level.)

## @hamideh  For this polynomial ...

@hamideh  For this polynomial equation, you can express one variable in terms of two others. This is the same as my previous message, only with the formulas.

```restart:
f1 := -(1/400)*Pi^2+(.816196912*x1-.408547794*x2-.408547794*x3)^2+(.707106781*x2-.707106781*x3)^2;
solve(f1, [x3]);```

## A double loop...

@hamideh  For example, start a double loop. In the outer loop, change the value of x1, and in the inner loop, change the value of x2 relative to x1, and  solve (f1, [x3]). The solve (f1, [x3]) procedure finds all solutions x3, and you choose the ones you need.

`f1 := -(1/400)*Pi^2+(.816196912*x1-.408547794*x2-.408547794*x3)^2+(.707106781*x2-.707106781*x3)^2;`

(This is a fairly accurate polynomial approximation to your equation.) Do the same for all periodic solutions that fall within the required range.
If you are not satisfied with the accuracy of the solution, then you can always supplement the loop with the fsolve procedure, but this time relative to your original equation, indicating the corresponding range for the fsolve procedure.
You will succeed.

## Yes...

@Kitonum
Yes, it was necessary to start much more to the left. Then everything fits together.

```                               1
-47.53726862
2
-46.64054105
3
-29.30913089
4
-28.07302137
```

## For the sake of curiosity,...

@dharr  please show your 27 solutions. In my version of Maple, your program doesn't work. I counted 23 on the graph, NextZero and Draghilev's method also gave 23

```                                                           -8
1, [HFloat(-4.3095768833401635)], 9.06687679380624446 10
-7
2, [HFloat(-1.1023789158944424)], 1.50646519592179118 10
-9
3, [HFloat(13.407730779581346)], 7.79979625331606030 10
-8
4, [HFloat(18.113661217228824)], 1.66432153059226096 10
-8
5, [HFloat(31.783308581635165)], 2.72685562741070698 10
-7
6, [HFloat(37.07999963464075)], 1.09762171685012788 10
-9
7, [HFloat(39.84837784271576)], 3.93514354435353653 10
-8
8, [HFloat(43.82587731863776)], 6.71648974492899953 10
-8
9, [HFloat(50.25908342435418)], 2.93121961577290369 10
-7
10, [HFloat(55.575394679681445)], 1.35574310347608140 10
-7
11, [HFloat(55.882759086494076)], 1.18089220589590038 10
-8
12, [HFloat(63.09487085630448)], 6.04421363792351229 10
-8
13, [HFloat(68.2966429866009)], 8.61217160919025559 10
-9
14, [HFloat(71.81338112721974)], 8.58604581877031592 10
-8
15, [HFloat(74.6968525451681)], 4.96600724708695652 10
-8
16, [HFloat(82.69383468107193)], 1.58464290578308464 10
-8
17, [HFloat(84.61651574863721)], 2.03942768228770888 10
-8
18, [HFloat(89.47047663737627)], 6.66622110845338512 10
-8
19, [HFloat(93.33508470604818)], 8.73743196683207657 10
-7
20, [HFloat(108.15523037467786)], 1.70414072853120047 10
-7
21, [HFloat(111.66954228728133)], 1.16034193475833548 10
-8
22, [HFloat(127.67295282695558)], 2.57006522730307552 10
-8
23, [HFloat(128.95061538591767)], 1.56371757764617314 10
```

## @hamideh For example, just print al...

@hamideh
For example, just print all the points that are animated and you will find out how many there are and see their numerical values...
Do you know how to get the equation of a circle by three  points that do not lie on one straight line? Also, are you familiar with the angles of rotation around the coordinate axes? This is all plus the selection of the values ​​of the periods, and you get algebraic equations instead of trigonometric ones, but with a certain accuracy. There are 5 parameters in total.
I have given the values ​​of these parameters rather roughly, but they can be refined using Maple optimization procedures.

## A kind of generalized answer....

The whole animation is a solution on a tube; the solution can be continued in a practical sense for the entire tube. This is not one or three points, it is an infinite number of solutions. Look carefully at the text. This method can find all solutions on connected sets (for example, on all our tubes separately). The method only needs to hook on one point of such a set. In order to catch on, you need all sorts of techniques, including auxiliary equations.
I advise you to familiarize yourself with the idea of the method. You can do this here.
https://www.maplesoft.com/applications/view.aspx?SID=149514
A lot of information in Russian. There is also a search on the forum. To better master the Draghilev method and help others with this, you can create a separate topic in the questions section.
The algebraic solution is hardly better than the solution by Draghilev's method, but in this case, it seems to me, is much more convenient. By the way, it was found with help by Draghilev's method.
By controlling three parameters: first the radius of the cylinder, then two angles of inclination, you can very accurately select the geometric appearance of the first tube. Then two more parameters remain: the period along the first coordinate and the period along the second coordinate. The quality of the selection of all parameters can be checked by the accuracy of the difference between the original equation and the new one.

 1 2 3 4 5 6 7 Last Page 1 of 22
﻿