Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline ianlh  
#1 Posted : 09 December 2021 15:10:03(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi,

I am trying to convert a Mathcad 15 sheet, and have a problem with the below equation:
sum.JPG
Is there a summation within Smath that will do the second summation?
From the Mathcad help:
sum1.JPG

Thanks in advance
Ian

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Razonar  
#2 Posted : 09 December 2021 18:33:55(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. There are not equivalent, but this is how to convert it into usual summation operator.

img0.png

Best regards.
Alvaro.
Offline ianlh  
#3 Posted : 10 December 2021 11:15:00(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi,

Still cant get it to work, I will strip out the identifying material and post the worksheet.

Thanks
Ian
Offline ianlh  
#4 Posted : 10 December 2021 13:12:21(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Attached is sheet, this is a MRM for beam frequency analysis

natural freq 5 v2 forum.sm (59kb) downloaded 17 time(s).
Offline Jean Giraud  
#5 Posted : 10 December 2021 14:18:09(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ianlh Go to Quoted Post
Attached is sheet, this is a MRM for beam frequency analysis

Sum over 'n' ... NOT over 'k'
Model summation attached.

Function Running Summation.sm (33kb) downloaded 10 time(s).

Offline uni  
#6 Posted : 10 December 2021 14:39:51(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: ianlh Go to Quoted Post
Attached is sheet, this is a MRM for beam frequency analysis


Better to attach the original Mathcad document.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline ianlh  
#7 Posted : 10 December 2021 17:24:34(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Mathcad sheet attached, striped version
beam frequency test 2.xmcd (172kb) downloaded 10 time(s).

Jean, I am at a loss as to which part of your file I should be looking at.

Ian
Offline Razonar  
#8 Posted : 10 December 2021 17:48:32(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. As Viacheslav says, it's better in this case the mathcad file. Just a couple of notes.

You use a for loop with i as counter. Thus, at the exit, i equals the last count value, not the entire range. So, or you redefine i as range, or use this way for not changing i value

img1.png

Actually, SMath doesn't have "range" variables, it only have scalars and matrices. But mathcad have "true" range variables, which it's more a complication than an adventage. BTW in SMath you can't use a range variable in the same way, and sometimes needs some dummy variable for detect them

img0.png

Finally, remember that in mathcad sqrt(-1) is 1i, but in SMath it is just i, so using is as counter you loose all the complex algebra.

Bests regards.
Alvaro.
Offline Jean Giraud  
#9 Posted : 10 December 2021 18:30:05(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ianlh Go to Quoted Post
Jean, I am at a loss as to which part of your file I should be looking at.

It just shows how to run summation wrt several dependent functions.
Offline ianlh  
#10 Posted : 10 December 2021 19:33:41(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi Alvaro,

Some interesting hints there. I imagine its also the same going the other way.

Hi Jean,

OK, now I understand, just some pointers for me

Thanks
Ian
Offline Jean Giraud  
#11 Posted : 10 December 2021 19:46:48(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ianlh Go to Quoted Post
Hi Jean,
OK, now I understand, just some pointers for me
Thanks
Ian

The A,B are numerical two vectors of coefficients.
Then introduced in the scalar function wrt sin/cos.

Offline uni  
#12 Posted : 10 December 2021 21:00:17(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: ianlh Go to Quoted Post
I am trying to convert a Mathcad 15 sheet, and have a problem with the below equation:

I think that there should be such a replacement.

2021-12-10_22-55-01.png 2021-12-10_22-58-40.png
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#13 Posted : 10 December 2021 21:09:11(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
You can use debugging in both programs to check that the functions are working correctly.

Click to enlarge
Russia ☭ forever
Viacheslav N. Mezentsev
Offline ianlh  
#14 Posted : 10 December 2021 21:50:04(UTC)
ianlh


Rank: Advanced Member

Groups: Registered
Joined: 18/12/2014(UTC)
Posts: 38

Hi,

Thanks for the pointers, will revisit tomorrow

Ian
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.