About GivenFind function

About GivenFind function - Сообщения

#21 Опубликовано: 19.03.2018 14:01:21
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

Ahh. I missed that. FindRoot(ES1).smz (3 КиБ) скачан 47 раз(а).
Wrote

This is a matter of third and fourth parameter of FindRoot() function (numerical precision). The solution will be different if you change them. Just look at the order of magnitude of the solutions. The second and third values are quite close to zero. Therefore, one might expect this behavior.



#22 Опубликовано: 19.03.2018 14:43:43
Nicolae Olaru

Nicolae Olaru

1 сообщений из 115 понравились пользователям.

Группа: User

Wrote

... I don't think so ! Check I recomposed correctly ...



I think it's just a speculation Jean Giraud. A case at one billion, or even the only case of an infinite number of possibilities. In any case, the variables B1 and B2 physically represent inductions through an electromagnetic core. Exponent n (or α if you prefer) is a strictly positive number as the formula is constructed. It is an empirical one, known as the Steinmetz relationship. That is why (with all due respect) I will never assign negative values to exponent n. Then (with all due respect) I think you have researched a lot to find out that negative value α = -1.23456789... (irrational number) very probably (perhaps certainly) the only one for which there is linear dependence relative to equations 1 and 3 in the system.
#23 Опубликовано: 19.03.2018 15:45:35
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello ola_nicolas,

My advice to you is to try changing the units of your known variables (if this can have a physical meaning, of course) in order to get the solution of unknown variables not so close to zero. And every time check the solution - surprises are always possible.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#24 Опубликовано: 19.03.2018 16:06:36
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

negative value α = -1.23456789...


Was just to attract your attention. Now, plug 1.23456789 ... anything.
Maybe the equality system is zombie ?

#25 Опубликовано: 20.03.2018 03:31:09
Nicolae Olaru

Nicolae Olaru

1 сообщений из 115 понравились пользователям.

Группа: User

Hello everybody

Thanks Jean Giraud for the alert. Thanks Radovan for advice. Thank you all for your involvement. Without you it could not have been a convenient solution. Radovan is right. I have made ab initio the transformations in the units of measurement that I use in practice. I will do more tests and checks until I have established the usable form of the solution. However, from the point of view of the result, I find myself close to physical reality. Thank you once again.

Post scriptum: Please tell me what kind of files are those with the ending "msz". I have tried unsuccessfully to open the files posted by ElSid.
#26 Опубликовано: 20.03.2018 07:48:04
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

Post scriptum: Please tell me what kind of files are those with the ending "msz". I have tried unsuccessfully to open the files posted by ElSid.



It is a compressed format of the smath file format. I see no issues opening it in SMath Studio 0.98.6484 portable, except that you have to skip the warning messages (file created with more recent SMath Studio + Writer Region plugin requested; the second is in red because there isn't a 0.10 version for your SS, however you can skip the message and will be fully readable if you have the latest version of the Writer Region for your SS, otherwise Writer Regions will be displayed with a red cross)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#27 Опубликовано: 20.03.2018 09:57:17
Nicolae Olaru

Nicolae Olaru

1 сообщений из 115 понравились пользователям.

Группа: User

Auguri Davide

Thank you for your answer. I do not have time now, but I will try later to see how I have to do it. Otherwise, all the best.
#28 Опубликовано: 21.03.2018 01:43:37
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Exponent n (or α if you prefer) is a strictly positive number as the formula is constructed.



The other way around. As you give the system, a 3 conditions system, you need
a vector of initials [3]. Whereas 'n' can be anything, make 'n init =1'.
This will solve uniquely wrt dummy 'n' considering the [3] set of conditions
is ill posed for two parameters.
#29 Опубликовано: 21.03.2018 05:14:06
Nicolae Olaru

Nicolae Olaru

1 сообщений из 115 понравились пользователям.

Группа: User

Greetings to all

In attachment I intend to do a comparative study between solving the equation system using different units of measure. The first variant is the one already previously analyzed, with the measurement units dictated by practical considerations - [Hz] for frequencies, [T] for inductions and [W / mm3] for specific losses in the magnetic core. The following three variants correspond to the set of measuring units - [kHz] for frequencies, [T] for inductions and [kW / m3], used in ferrite cores producers data sheets. It is seen that depending on the set of three initial data, the result of the calculation is altered in variants 3 and 4. I also responded to Radovan's request to try to use different measurement units in order to avoid the zero convergence of the solutions for the variables η si λ. It can be seen that the use of this set of units of measure has advantages over the other. Considering the very wide range of ferrite cores currently produced, it is very likely that in some cases the calculation will yield vague results.

On the other hand, in connection with Radovan's fear that the use of very small subunits can affect the calculation, I think it is unreasonable. I made a SMath spreadsheet to see what result returns my program to 1/10^308. It was 10^-308. So in numerical representation, the program can distinguish between extremely close to zero results. By comparison, MathCAD has set the (infinite) level of 10^307. At the same time, however close to zero, the result does not in any way affect my initial values ​​set for the variables. The difference between the value returned by calculating of two variables, and their initial value, will always be less than the unit. For the value of exponent n, in practice we find values ​​of the order of the result from this calculation. So it seems to me that the advantage of the first option is obvious. Otherwise, all the best.

FindRoot comparative.jpg
#30 Опубликовано: 21.03.2018 16:37:16
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

In attachment I intend to do a comparative study between solving the equation system using different units of measure.


Totally useless, it has nothing to do with the maths handled by the solver.
Up to this point, the project is brute force solved in the attached.
It could be refined from there by finishing outside of the solver.
It might be possible to manually optimized [η,λ] and let 'n=2',
this can't be predicted ... you may have to play [n,η,λ].
Could this finishing be done done automatically ?
Answer is NO ... why ? because of the X^Y power function involved.
Under the hood, X^Y is a combination exp(,), ln(,)
Can't help more, from this lecture. Lot more difficult/impossible
projects were done, well done from patience.

FindRootsRefexive.sm (15 КиБ) скачан 32 раз(а).

FindRootsReflexive.PNG
#31 Опубликовано: 21.03.2018 17:41:03
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

Greetings to all

In attachment I intend to do a comparative study between solving the equation system using different units of measure.



Using different units for the equations in FindRoot(2) essentially means to use different relative convergence criteria if these aren't adjusted in the FindRoot() call.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#32 Опубликовано: 22.03.2018 09:51:40
Nicolae Olaru

Nicolae Olaru

1 сообщений из 115 понравились пользователям.

Группа: User

Hello

Wrote

... use different relative convergence criteria ...


Can you detail (possibly with examples) please?
#33 Опубликовано: 22.03.2018 10:40:18
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

FindRoot() internally converts the numbers to base units (meter). The default tolerance of 0.0001 for variable and function is to be interpreted in the base unit of the given quantity.

In the first example with volume and height being close to unity in base units, the default tolerance is appropriate.
If the dimensions are scaled by factor 0.001 (mm instead of m) then the tolerance is nearly of the same magnitude as the variable. The result is complete rubbish. The problem is fixed by adjustment of the tolerances.

2018-03-22 14_31_05-SMath Studio - [findroot.sm].png
findroot.sm (29 КиБ) скачан 31 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
sergio 22.03.2018 11:07:00
#34 Опубликовано: 22.03.2018 11:29:40
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Can you detail (possibly with examples) please?



Maybe Martin has some trick.
That's what I meant about NON-linear model wrt X^Y,
Great Mathcad failed on that one [I guess it toke me > one day]
Maybe the project is not properly constructed, can it be made implicit ?

Difficult.PNG

Solve Algebraic.sm (46 КиБ) скачан 38 раз(а).

#35 Опубликовано: 23.03.2018 06:48:19
Nicolae Olaru

Nicolae Olaru

1 сообщений из 115 понравились пользователям.

Группа: User

Hi

Wrote

... If the dimensions are scaled by factor 0.001 (mm instead of m) then the tolerance is nearly of the same magnitude as the variable. The result is complete rubbish. The problem is fixed by adjustment of the tolerances ...



All right, I think I understand. Corroborating Martin's information with Jean Giraud's example (using graphical representations) I understand it is possible that the function passes through the points I choose to apply the FindRoot procedure, while the rest of the points are quite far from what they should results using the negligible tolerances in relation to the magnitude of variables. I will study much more carefully these numerical procedures for solving equations and / or systems of equations. Thank you all.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений