Troubles with FindRoot

Troubles with FindRoot - Solution is equal to the guess - Сообщения

#1 Опубликовано: 04.02.2026 21:39:06
Will McCartney

Will McCartney

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

Группа: User

Forgive me if this is all due to a mathematical error that's obvious to you; I'm merely an engineer. I've used FindRoot with success in the past, but never with this complex of an equation.

I did my best to explain everything in the blue text.

If it matters, I'm using the final version of MKraska's portable install: 0.99.7579

image.png FindRoot error.sm (17,23 КиБ) скачан 28 раз(а).
#2 Опубликовано: 04.02.2026 22:09:06
Martin Kraska

Martin Kraska

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

Группа: Moderator

The plot problem is due to unit mismatch. Note that in plots, the independet variable always gets unit-free values (except in Maxima Draw plots, if you specify limits with units). Thus you have to make sure that the functions to graph get arguments with the correct dimension. If you define the function explicitly, then something like a(x m) will work. If it is just an expression, then use the substitution operator at() from the Custom Functions plugin.

The solver problem is due to mismatch between number of equations and variables.

The key to using the result of Solve() is the function Assign().

grafik.png
Отредактировано 04.02.2026 22:17:15
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Davide Carpi 06.02.2026 08:06:39
  • Новые сообщения
  • Нет новых сообщений