1 Pages (7 items)
solver, function with "for loop" not working - solver error - Messages
#1 Posted: 1/24/2021 11:37:07 PM
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 KiB) downloaded 28 time(s).
The crux of the issue is this part. Is what I'm doing just not possible?

File attached
upload-question1.sm (18 KiB) downloaded 28 time(s).
#2 Posted: 1/25/2021 9:04:36 AM
WroteHi 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 KiB) downloaded 32 time(s).
#3 Posted: 1/25/2021 9:34:52 AM
#4 Posted: 1/26/2021 10:03:54 PM
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.
As shown in the attachment, the function does have a root.
#5 Posted: 1/26/2021 11:39:52 PM
WroteThanks 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 Posted: 1/27/2021 4:33:04 AM
WroteThanks 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:
Best regards.
Alvaro.
#7 Posted: 1/27/2021 5:40:26 AM
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

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


1 Pages (7 items)
-
New Posts
-
No New Posts