Find y(x)

Find y(x) - Messages

#1 Posted: 9/26/2022 6:13:07 PM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

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...
#2 Posted: 9/26/2022 6:17:37 PM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

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
#3 Posted: 9/26/2022 6:21:06 PM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

Wrote

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 = {}
#4 Posted: 9/26/2022 6:37:29 PM
churichuro

churichuro

28 likes in 79 posts.

Group: User

#5 Posted: 9/26/2022 6:57:35 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Wrote

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/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 9/26/2022 7:16:16 PM
overlord

overlord

551 likes in 1332 posts.

Group: Moderator

Let's visualize what Martin has perfectly described.

2022-09-27_01-13_1.png
#7 Posted: 9/27/2022 2:02:16 AM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote



Oh, I'm sorry, could you tell me how to make a vector over y(x)?
#8 Posted: 9/27/2022 2:56:56 AM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

Wrote

Wrote

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?
#9 Posted: 9/27/2022 3:55:50 AM
overlord

overlord

551 likes in 1332 posts.

Group: Moderator

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.
#10 Posted: 9/27/2022 5:20:48 AM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

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
#11 Posted: 9/27/2022 5:35:46 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

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)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Posted: 9/27/2022 6:00:48 AM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

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?
#13 Posted: 9/27/2022 6:08:12 AM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

Wrote

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
#14 Posted: 9/27/2022 6:24:19 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Therefore you are in this case:

Wrote

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 (7 KiB) downloaded 21 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)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#15 Posted: 9/27/2022 8:02:43 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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 (6 KiB) downloaded 21 time(s).

#16 Posted: 9/27/2022 8:32:39 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... Previous Smath document has been removed from Smath Community.

Vincenti.PNG
#17 Posted: 9/27/2022 8:36:48 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

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 (5 KiB) downloaded 30 time(s).
2022-09-27 14_02_53-SMath Solver - [Parlepanpindipon_sin2(x).sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#18 Posted: 9/27/2022 10:19:15 AM
Parlepanpindipon

Parlepanpindipon

0 likes in 9 posts.

Group: User

Wrote

Wrote

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 (5 KiB) downloaded 30 time(s).
2022-09-27 14_02_53-SMath Solver - [Parlepanpindipon_sin2(x).sm].png



Thx, very much
#19 Posted: 9/27/2022 12:58:16 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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 !

#20 Posted: 9/27/2022 7:34:52 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

ClassRoom.PNG
  • New Posts New Posts
  • No New Posts No New Posts