求和计算提示k没有定义

求和计算提示k没有定义 - 如图片所示,用求和计算以k为变量的函数,提示k没有定义,直接计算k是可以计算的 - 消息

#1 已发布: 2026/4/22 09:35:32
黄东海

黄东海

0个赞,共1个帖子。

组: User

屏幕截图 2026-04-22 171121.png
#2 已发布: 2026/4/23 07:52:13
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

There are a lot of terms involved, without a worksheet it's nearly impossible to understand what's the issue and how to solve it.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 已发布: 2026/4/23 13:16:13
Вячеслав Мезенцев

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

1,558个赞,共1,868个帖子。

组: Moderator

IMG_0537.jpeg
Russia ☭ forever, Viacheslav N. Mezentsev
#4 已发布: 2026/4/23 23:24:07
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. This is what the calculation of average driving power generally looks like, more or less.

image.png

IGBT Average Driving Power.sm (12.04 KiB)已下载 607 次。

Regarding the error message, it might be because you're using `k` somewhere; the summation variable must be undefined. Try changing it to something else.

Best regards
Alvaro
已编辑 2026/4/23 23:34:56
#5 已发布: 2026/4/24 07:18:00
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Units and plot added.

image.png

IGBT Average Driving Power.sm (15.89 KiB)已下载 638 次。

Best regards
Alvaro
已编辑 2026/4/24 07:21:01
#6 已发布: 2026/4/24 09:40:52
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Wrote

Regarding the error message, it might be because you're using `k` somewhere; the summation variable must be undefined. Try changing it to something else.



This shouldn't be an issue anymore, I think it's more a operation order like Viacheslav pointed out.

immagine.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 已发布: 2026/4/24 14:23:34
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi Davide.

Wrote

... This shouldn't be an issue anymore, I think it's more a operation order like Viacheslav pointed out.


The user wrote: "Summation calculation prompt: 'k' is undefined - As shown in the image, when using the summation to calculate a function with 'k' as the variable, it prompts that 'k' is undefined, even though 'k' can be calculated directly." so I assume he is using an older version of SMath. In the latest version, k does not "go outside" the summation, as the user seems to be indicating.

image.png

Best regards.
Alvaro.
#8 已发布: 2026/4/24 16:36:02
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Good point.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#9 已发布: 2026/4/24 18:46:58
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Also, this is what the error looks like in the current version in case of incorrect parentheses: with a rounded box filled with red, in a more retina-damaging style

image.png

IGBT Average Driving Power - bad parenthisation.sm (12.73 KiB)已下载 623 次。

Best regards.
Alvaro.
已编辑 2026/4/24 18:51:16
  • 有新帖
  • 无新帖