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 Andrey007  
#1 Posted : 07 April 2020 17:49:26(UTC)
Andrey007

Rank: Newbie

Groups: Registered
Joined: 03/04/2020(UTC)
Posts: 6
Russian Federation
Location: Спб

Please help with the pr Zadanie 2.sm (10kb) downloaded 17 time(s).oblem. For some reason, the program does not like the range j, why it is not clear.
Thanks for the help

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

Offline Andrey007  
#2 Posted : 07 April 2020 22:16:24(UTC)
Andrey007

Rank: Newbie

Groups: Registered
Joined: 03/04/2020(UTC)
Posts: 6
Russian Federation
Location: Спб

Snimok 1 .PNG
Originally Posted by: Andrey007 Go to Quoted Post
Please help with the pr Zadanie 2.sm (10kb) downloaded 17 time(s).oblem. For some reason, the program does not like the range j, why it is not clear.
Thanks for the help


Offline Andrey007  
#3 Posted : 07 April 2020 22:19:22(UTC)
Andrey007

Rank: Newbie

Groups: Registered
Joined: 03/04/2020(UTC)
Posts: 6
Russian Federation
Location: Спб

The problem with the function of the vector
Offline Davide Carpi  
#4 Posted : 08 April 2020 01:47:33(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Hello Andrey007 Offline

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 (13kb) downloaded 18 time(s).
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#5 Posted : 08 April 2020 15:29:23(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)
Sorry for some gross mistake ... deleted.
You can use Smath code floor/ceiling


Zadanie 2_1[floor].sm (16kb) downloaded 22 time(s).
Offline Andrey007  
#6 Posted : 08 April 2020 23:48:42(UTC)
Andrey007

Rank: Newbie

Groups: Registered
Joined: 03/04/2020(UTC)
Posts: 6
Russian Federation
Location: Спб

Thanks for the help, be healthy!
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.