solver, function with "for loop" not working

solver, function with "for loop" not working - solver error - Сообщения

#1 Опубликовано: 24.01.2021 23:37:07
rodp1

rodp1

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

Группа: User

Hi all, trying to get "solve" to work with a function that has a "for loop"

The crux of the issue is this part. Is what I'm doing just not possible?



File attached
upload-question1.sm (18 КиБ) скачан 28 раз(а).
#2 Опубликовано: 25.01.2021 09:04:36
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Hi all, trying to get "solve" to work with a function that has a "for loop"
The crux of the issue is this part. Is what I'm doing just not possible?


Plot that function first, then solve.
That will clarify the suite.

upload-question1 Solve.sm (22 КиБ) скачан 32 раз(а).

#3 Опубликовано: 25.01.2021 09:34:52
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

The crux of the issue is this part. Is what I'm doing just not possible?


No problem from correctly dressed system.

Solve Scanner.PNG
#4 Опубликовано: 26.01.2021 22:03:54
rodp1

rodp1

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

Группа: User

Thanks for the attempt to help Jean, but I surmise from your answer that the particular construct I'm using, which involves a "sign" function, can't be solved using the "solve" function.

As shown in the attachment, the function does have a root.
#5 Опубликовано: 26.01.2021 23:39:52
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Thanks for the attempt to help Jean, but I surmise from your answer that the particular construct I'm using, which involves a "sign" function, can't be solved using the "solve" function.


I was suggesting a solve bloc within a for loop, your original question.
Cheers ... Jean
#6 Опубликовано: 27.01.2021 04:33:04
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote

Thanks for the attempt to help Jean, but I surmise from your answer that the particular construct I'm using, which involves a "sign" function, can't be solved using the "solve" function.

As shown in the attachment, the function does have a root.



Sign isn't one of the problematic functions for solve (maybe for diff or int, but not for solve). Here is the problem: Mathcad have an special notation for the imaginary unit as 1i or 1j, SMath doesn't. Just change "i" by "n" under your Sigma:

Clipboard05.jpg

Best regards.
Alvaro.
#7 Опубликовано: 27.01.2021 05:40:26
rodp1

rodp1

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

Группа: User

Raznor - thanks for that! Appreciated.

I managed to solve it a slightly different way - rather than using the explicit summation form, I replaced it with a sum() call. So I didn't need to explicitly define the counter.

I have to stop trying to program like it's VBA


  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений