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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: Parlepanpindipon 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...
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
And the result should be displayed as x = {}
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 27/03/2019(UTC) Posts: 75 Location: coah Was thanked: 27 time(s) in 22 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
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. |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,126 Was thanked: 507 time(s) in 338 post(s)
|
Let's visualize what Martin has perfectly described.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: churichuro Oh, I'm sorry, could you tell me how to make a vector over y(x)?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: mkraska 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?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,126 Was thanked: 507 time(s) in 338 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.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: overlord 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 following
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
That's the dinamic assistance when you write directly vectorize Here is the vectorize button as shown by overlord in post #6As 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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: Davide Carpi That's the dinamic assistance when you write directly vectorize Here is the vectorize button as shown by overlord in post #6As 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?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: Parlepanpindipon Originally Posted by: Davide Carpi That's the dinamic assistance when you write directly vectorize Here is the vectorize button as shown by overlord in post #6As 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?
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Therefore you are in this case: Originally Posted by: Davide Carpi 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 loops.sm (8kb) downloaded 6 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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Parlepanpindipon 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. Maths sin2(x) plot.sm (7kb) downloaded 4 time(s).
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
... Previous Smath document has been removed from Smath Community.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Originally Posted by: Parlepanpindipon 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 > ^ > 2tricks 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 6 time(s).Edited by user 27 September 2022 15:10:39(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2022(UTC) Posts: 9
|
Originally Posted by: Davide Carpi Originally Posted by: Parlepanpindipon 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 > ^ > 2tricks 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 6 time(s). Thx, very much
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Parlepanpindipon 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 !
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
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.