min function not defined

min function not defined - min function not defined - Сообщения

#1 Опубликовано: 27.09.2024 03:40:02
nominal_diameter

nominal_diameter

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

Группа: User

Hello,

I'm struggling with the 'min' function. Could someone please point out where I'm going wrong? Thank you.

Capture.PNG
#2 Опубликовано: 27.09.2024 13:36:11
Davide Carpi

Davide Carpi

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

Группа: Moderator

Hi [userlink]nominal_diameter[/userlink],

as stated in the function description, min() returns the minimum value of a vector (or matrix), in a single argument. Same goes for max().
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 27.09.2024 14:03:38
ioan92

ioan92

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

Группа: User


Hi nominal_diameter,
Try this way:

nominal.png
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#4 Опубликовано: 27.09.2024 20:43:15
nominal_diameter

nominal_diameter

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

Группа: User

Thank you both for the response.

ioan92, the software won't allow me to use semicolons instead of comas, nothing happens when I push the semicolon button. How do I insert the semicolon?

Besides the semicolons, is there any difference that I'm missing?
#5 Опубликовано: 27.09.2024 21:49:25
Gerry_Bush

Gerry_Bush

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

Группа: User

Hi nominal_diameter

It is the use of the Min function rather than the min function that is important in this case.

The semicolon or comma is just the default separator for the list of values, set in the Tools menu under Options.

Options.png
1 пользователям понравился этот пост
ioan92 27.09.2024 22:48:00
#6 Опубликовано: 27.09.2024 23:01:19
nominal_diameter

nominal_diameter

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

Группа: User

Hi,

I've tried using the Min function and still get the same result. I also tried entering a string of numbers to see if that would work, but no luck yet.

Capture2.PNG
#7 Опубликовано: 27.09.2024 23:43:40
Davide Carpi

Davide Carpi

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

Группа: Moderator

What is the error message returned by the function?

(Hover the mouse over the region to display the popup baloon or use the lastError variabile to display as string on canvas)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#8 Опубликовано: 27.09.2024 23:54:13
nominal_diameter

nominal_diameter

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

Группа: User

Hi Davide,

On both Min and min, the baloon says function is not defined.
#9 Опубликовано: 28.09.2024 00:14:12
Davide Carpi

Davide Carpi

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

Группа: Moderator

It Is possible that you don't have the Custom functions plugin installed.

If that's the case, inside SMath Studio:
- go to Tools > Plugins...;
- switch Local storage into Online gallery;
- search the plugin in the list;
- download it.

Alternatively if you open a worksheet that contains a function from that plugin, the program will prompt a dialog to install it.

Once installed you should be able to use those functions, unless there is some bug 🐛, in that case we will investigate it further.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#10 Опубликовано: 28.09.2024 00:28:58
ioan92

ioan92

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

Группа: User

Hi nominal_diameter,

Please load the attached file from my message and tell us what happens.

nominal.sm (4 КиБ) скачан 45 раз(а).

regards,
Ioan
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#11 Опубликовано: 28.09.2024 02:42:39
nominal_diameter

nominal_diameter

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

Группа: User

I didn't have the custom functions installed! I'm relatively new to Smath, I just recently switched over from mathcad. Thank you all for the help!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений