The problem with the function of the vector

The problem with the function of the vector - Messages

#1 Posted: 4/7/2020 11:49:26 AM
Andrey007

Andrey007

0 likes in 7 posts.

Group: User

Please help with the prZadanie 2.sm (9 KiB) downloaded 37 time(s).oblem. For some reason, the program does not like the range j, why it is not clear.
Thanks for the help
#2 Posted: 4/7/2020 4:16:24 PM
Andrey007

Andrey007

0 likes in 7 posts.

Group: User

File not found.
Wrote

Please help with the prFile not found.oblem. For some reason, the program does not like the range j, why it is not clear.
Thanks for the help



#3 Posted: 4/7/2020 4:19:22 PM
Andrey007

Andrey007

0 likes in 7 posts.

Group: User

The problem with the function of the vector
#4 Posted: 4/7/2020 7:47:33 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hello [userlink]Andrey007[/userlink]

Here there is your code adaped to SS syntax.

To loop the (scalar) functions through the values of a vector (1-column matrix) you can use vectorize or a for/while function.

Since in A=0 Kg(A) is indeterminate (0/0) and Kn(a) is an infinity and you can't plot that I've started the range from the 2nd value within the original range.

Zadanie 2_1.sm (12 KiB) downloaded 41 time(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 4/8/2020 9:29:23 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Sorry for some gross mistake ... deleted.
You can use Smath code floor/ceiling


Zadanie 2_1[floor].sm (15 KiB) downloaded 47 time(s).
#6 Posted: 4/8/2020 5:48:42 PM
Andrey007

Andrey007

0 likes in 7 posts.

Group: User

Thanks for the help, be healthy!
  • New Posts New Posts
  • No New Posts No New Posts