Summation Equivalent

Summation Equivalent - Сообщения

#1 Опубликовано: 09.12.2021 09:10:03
ianlh

ianlh

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

Группа: User

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
#2 Опубликовано: 09.12.2021 12:33:55
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. There are not equivalent, but this is how to convert it into usual summation operator.

img0.png

Best regards.
Alvaro.
#3 Опубликовано: 10.12.2021 05:15:00
ianlh

ianlh

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

Группа: User

Hi,

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

Thanks
Ian
#4 Опубликовано: 10.12.2021 07:12:21
ianlh

ianlh

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

Группа: User

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

natural freq 5 v2 forum.sm (58 КиБ) скачан 47 раз(а).
#5 Опубликовано: 10.12.2021 08:18:09
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

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


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

Function Running Summation.sm (32 КиБ) скачан 36 раз(а).

#6 Опубликовано: 10.12.2021 08:39:51
Вячеслав Мезенцев

Вячеслав Мезенцев

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

Группа: Moderator

Wrote

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



Better to attach the original Mathcad document.
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Опубликовано: 10.12.2021 11:24:34
ianlh

ianlh

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

Группа: User

Mathcad sheet attached, striped version
beam frequency test 2.xmcd (171 КиБ) скачан 30 раз(а).

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

Ian
#8 Опубликовано: 10.12.2021 11:48:32
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

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.
#9 Опубликовано: 10.12.2021 12:30:05
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

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.
#10 Опубликовано: 10.12.2021 13:33:41
ianlh

ianlh

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

Группа: User

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
#11 Опубликовано: 10.12.2021 13:46:48
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

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.

#12 Опубликовано: 10.12.2021 15:00:17
Вячеслав Мезенцев

Вячеслав Мезенцев

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

Группа: Moderator

Wrote

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.

Файл не найден. Файл не найден.
Russia ☭ forever, Viacheslav N. Mezentsev
#13 Опубликовано: 10.12.2021 15:09:11
Вячеслав Мезенцев

Вячеслав Мезенцев

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

Группа: Moderator

You can use debugging in both programs to check that the functions are working correctly.

Click to enlarge
Russia ☭ forever, Viacheslav N. Mezentsev
#14 Опубликовано: 10.12.2021 15:50:04
ianlh

ianlh

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

Группа: User

Hi,

Thanks for the pointers, will revisit tomorrow

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