Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
Offline Parlepanpindipon  
#1 Posted : 27 September 2022 00:13:07(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Hello everyone, I have such a task here, you need to find y (x) for each value of x in the range from 1.2 to 2.4 with a step of 0.2.
X I managed to display and see the result. However, when writing the formula y(x) and trying to display y(x), it gives an error. help me please
Plus I can't figure out how to write sin^2(x) in order to have a formula...

Edited by user 27 September 2022 00:16:32(UTC)  | Reason: Not specified

Offline Parlepanpindipon  
#2 Posted : 27 September 2022 00:17:37(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: Parlepanpindipon Go to Quoted Post
Hello everyone, I have such a task here, you need to find y (x) for each value of x in the range from 1.2 to 2.4 with a step of 0.2.
X I managed to display and see the result. However, when writing the formula y(x) and trying to display y(x), it gives an error. help me please
Plus I can't figure out how to write sin^2(x) in order to have a formula...


SMathStudio_Desktop_3HzkdvPFJx.png
Offline Parlepanpindipon  
#3 Posted : 27 September 2022 00:21:06(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: Parlepanpindipon Go to Quoted Post
Originally Posted by: Parlepanpindipon Go to Quoted Post
Hello everyone, I have such a task here, you need to find y (x) for each value of x in the range from 1.2 to 2.4 with a step of 0.2.
X I managed to display and see the result. However, when writing the formula y(x) and trying to display y(x), it gives an error. help me please
Plus I can't figure out how to write sin^2(x) in order to have a formula...


SMathStudio_Desktop_3HzkdvPFJx.png


And the result should be displayed as x = {}
Offline churichuro  
#4 Posted : 27 September 2022 00:37:29(UTC)
churichuro


Rank: Advanced Member

Groups: Registered
Joined: 27/03/2019(UTC)
Posts: 63
Mexico
Location: coah

Was thanked: 20 time(s) in 17 post(s)
Offline mkraska  
#5 Posted : 27 September 2022 00:57:35(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,759
Germany

Was thanked: 967 time(s) in 615 post(s)
Originally Posted by: Parlepanpindipon Go to Quoted Post
Originally Posted by: Parlepanpindipon Go to Quoted Post
Hello everyone, I have such a task here, you need to find y (x) for each value of x in the range from 1.2 to 2.4 with a step of 0.2.
X I managed to display and see the result. However, when writing the formula y(x) and trying to display y(x), it gives an error. help me please
Plus I can't figure out how to write sin^2(x) in order to have a formula...


SMathStudio_Desktop_3HzkdvPFJx.png


Seems to be a very old version of SMath Studio (display of ranges, round matrix brackets). May well be that the vectorize function isn't available yet in that version. You might consider upgrading or you have to use an explicit loop with for or while.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline overlord  
#6 Posted : 27 September 2022 01:16:16(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 857
Turkey

Was thanked: 322 time(s) in 221 post(s)
Let's visualize what Martin has perfectly described.

2022-09-27_01-13_1.png
Offline Parlepanpindipon  
#7 Posted : 27 September 2022 08:02:16(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: churichuro Go to Quoted Post


Oh, I'm sorry, could you tell me how to make a vector over y(x)?
Offline Parlepanpindipon  
#8 Posted : 27 September 2022 08:56:56(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: mkraska Go to Quoted Post
Originally Posted by: Parlepanpindipon Go to Quoted Post
Originally Posted by: Parlepanpindipon Go to Quoted Post
Hello everyone, I have such a task here, you need to find y (x) for each value of x in the range from 1.2 to 2.4 with a step of 0.2.
X I managed to display and see the result. However, when writing the formula y(x) and trying to display y(x), it gives an error. help me please
Plus I can't figure out how to write sin^2(x) in order to have a formula...


SMathStudio_Desktop_3HzkdvPFJx.png


Seems to be a very old version of SMath Studio (display of ranges, round matrix brackets). May well be that the vectorize function isn't available yet in that version. You might consider upgrading or you have to use an explicit loop with for or while.


Ok, I tried to do it through the "for" loop, but it didn't work out very well for me, can you tell me how to do it?
Offline overlord  
#9 Posted : 27 September 2022 09:55:50(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 857
Turkey

Was thanked: 322 time(s) in 221 post(s)
you can either click Vectorize button at right tool window, or directly write vectorize as it is a function.

You can see the button in picture I have uploaded at post #6.
Offline Parlepanpindipon  
#10 Posted : 27 September 2022 11:20:48(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: overlord Go to Quoted Post
you can either click Vectorize button at right tool window, or directly write vectorize as it is a function.

You can see the button in picture I have uploaded at post #6.


by clicking on vectorize I have the followingizobrazhenie_2022-09-27_112045189.png
Offline Davide Carpi  
#11 Posted : 27 September 2022 11:35:46(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1267 time(s) in 833 post(s)
That's the dinamic assistance when you write directly vectorize

2022-09-27 10_35_10-SMath Solver - [Worksheet1_].png

Here is the vectorize button as shown by overlord in post #6

2022-09-27 10_32_40-Find y(x) - Mozilla Firefox.png


As stated by mkraska, it is possible that you are using an old version of the program that doesn't have that function (in that case you have to use a loop to evaluate the function for each n-th value of x)

Edited by user 27 September 2022 12:00:33(UTC)  | Reason: Not specified

If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline Parlepanpindipon  
#12 Posted : 27 September 2022 12:00:48(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: Davide Carpi Go to Quoted Post
That's the dinamic assistance when you write directly vectorize

2022-09-27 10_35_10-SMath Solver - [Worksheet1_].png

Here is the vectorize button as shown by overlord in post #6

2022-09-27 10_32_40-Find y(x) - Mozilla Firefox.png


As stated by mkraska, it is possible that you might using an old version of the program that doesn't have that function (in that case you have to use a loop to evaluate the function for each n-th value of x)


ok, I understand, but when I write vectorization, there is no such component, most likely there is simply no plugin or am I mistaken?
Offline Parlepanpindipon  
#13 Posted : 27 September 2022 12:08:12(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: Parlepanpindipon Go to Quoted Post
Originally Posted by: Davide Carpi Go to Quoted Post
That's the dinamic assistance when you write directly vectorize

2022-09-27 10_35_10-SMath Solver - [Worksheet1_].png

Here is the vectorize button as shown by overlord in post #6

2022-09-27 10_32_40-Find y(x) - Mozilla Firefox.png


As stated by mkraska, it is possible that you might using an old version of the program that doesn't have that function (in that case you have to use a loop to evaluate the function for each n-th value of x)


ok, I understand, but when I write vectorization, there is no such component, most likely there is simply no plugin or am I mistaken?


izobrazhenie_2022-09-27_120810708.png
Offline Davide Carpi  
#14 Posted : 27 September 2022 12:24:19(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1267 time(s) in 833 post(s)
Therefore you are in this case:

Originally Posted by: Davide Carpi Go to Quoted Post
As stated by mkraska, it is possible that you might using an old version of the program that doesn't have that function (in that case you have to use a loop to evaluate the function for each n-th value of x)


You have to update to a new version if you want to take advantage of vectorize, otherwise you have to use a loop from the programming palette (for or while); here you have a couple of ways

2022-09-27 11_23_12-SMath Solver - [Worksheet1_].png
loops.sm (8kb) downloaded 3 time(s).


BTW vectorize() is available in stable releases since SS 0.98.5935 (April 2016); square brackets in ranges are more recent, since SS 0.98.6593 (January 2018)

Edited by user 27 September 2022 13:08:31(UTC)  | Reason: Not specified

If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline Jean Giraud  
#15 Posted : 27 September 2022 14:02:43(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,245
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: Parlepanpindipon Go to Quoted Post
Plus I can't figure out how to write sin^2(x) in order to have a formula...

sin²(x) is silent code for purpose, often replied by maple
You have to code it as exemplified.
Cheers ... Jean.

sin2(x).PNG

Maths sin2(x) plot.sm (7kb) downloaded 1 time(s).

Offline Jean Giraud  
#16 Posted : 27 September 2022 14:32:39(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,245
Canada

Was thanked: 915 time(s) in 743 post(s)
... Previous Smath document has been removed from Smath Community.

Vincenti.PNG
Offline Davide Carpi  
#17 Posted : 27 September 2022 14:36:48(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1267 time(s) in 833 post(s)
Originally Posted by: Parlepanpindipon Go to Quoted Post
Plus I can't figure out how to write sin^2(x) in order to have a formula...


I missed this part, sorry. Simply type this sequence (the highlighted content):

sin( > x > keyboard right arrow > ^ > 2


tricks like those shown by Jean Jiraud above are useful if you want to disply the content in a different way or in other cases beyond a beginner level needs (in other words, there is no need to overcomplicate the things here).

Here you have your example with sin^2(x) and probably the more compact way to make it working in your Smath Studio version.

Parlepanpindipon_sin2(x).sm (6kb) downloaded 3 time(s).
2022-09-27 14_02_53-SMath Solver - [Parlepanpindipon_sin2(x).sm].png

Edited by user 27 September 2022 15:10:39(UTC)  | Reason: Not specified

If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
Offline Parlepanpindipon  
#18 Posted : 27 September 2022 16:19:15(UTC)
Parlepanpindipon

Rank: Newbie

Groups: Registered
Joined: 27/09/2022(UTC)
Posts: 9

Originally Posted by: Davide Carpi Go to Quoted Post
Originally Posted by: Parlepanpindipon Go to Quoted Post
Plus I can't figure out how to write sin^2(x) in order to have a formula...


I missed this part, sorry. Simply type this sequence (the highlighted content):

sin( > x > keyboard right arrow > ^ > 2


tricks like those shown by Jean Jiraud above are useful if you want to disply the content in a different way or in other cases beyond a beginner level needs (in other words, there is no need to overcomplicate the things here).

Here you have your example with sin^2(x) and probably the more compact way to make it working in your Smath Studio version.

Parlepanpindipon_sin2(x).sm (6kb) downloaded 3 time(s).
2022-09-27 14_02_53-SMath Solver - [Parlepanpindipon_sin2(x).sm].png


Thx, very much
Offline Jean Giraud  
#19 Posted : 27 September 2022 18:58:16(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,245
Canada

Was thanked: 915 time(s) in 743 post(s)
Originally Posted by: Parlepanpindipon Go to Quoted Post
tricks like those shown by Jean Jiraud above are useful

... no tricks in there, just productive project at will,
that you didn't download, i.e: not helping yourself !

Offline Jean Giraud  
#20 Posted : 28 September 2022 01:34:52(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,245
Canada

Was thanked: 915 time(s) in 743 post(s)
ClassRoom.PNG
Users browsing this topic
2 Pages12>
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.