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

### Notification

Error

 2 Pages12>
 Previous Topic Next Topic
 Parlepanpindipon #1 Posted : 27 September 2022 00:13:07(UTC) Rank: NewbieGroups: 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 pleasePlus 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
 Wanna join the discussion?! Login to your SMath Studio Forum forum accountor Register a new forum account.
 Parlepanpindipon #2 Posted : 27 September 2022 00:17:37(UTC) Rank: NewbieGroups: 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 pleasePlus I can't figure out how to write sin^2(x) in order to have a formula...
 Parlepanpindipon #3 Posted : 27 September 2022 00:21:06(UTC) Rank: NewbieGroups: Registered Joined: 27/09/2022(UTC)Posts: 9 Originally Posted by: Parlepanpindipon 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 pleasePlus I can't figure out how to write sin^2(x) in order to have a formula...And the result should be displayed as x = {}
 churichuro #4 Posted : 27 September 2022 00:37:29(UTC) Rank: Advanced MemberGroups: Registered Joined: 27/03/2019(UTC)Posts: 63Location: coahWas thanked: 20 time(s) in 17 post(s)
 mkraska #5 Posted : 27 September 2022 00:57:35(UTC) Rank: Advanced MemberGroups: Registered Joined: 15/04/2012(UTC)Posts: 1,759Was thanked: 967 time(s) in 615 post(s) Originally Posted by: Parlepanpindipon 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 pleasePlus I can't figure out how to write sin^2(x) in order to have a formula...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
 overlord #6 Posted : 27 September 2022 01:16:16(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 857Was thanked: 322 time(s) in 221 post(s) Let's visualize what Martin has perfectly described.
 Parlepanpindipon #7 Posted : 27 September 2022 08:02:16(UTC) Rank: NewbieGroups: 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)?
 Parlepanpindipon #8 Posted : 27 September 2022 08:56:56(UTC) Rank: NewbieGroups: Registered Joined: 27/09/2022(UTC)Posts: 9 Originally Posted by: mkraska Originally Posted by: Parlepanpindipon 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 pleasePlus I can't figure out how to write sin^2(x) in order to have a formula...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?
 overlord #9 Posted : 27 September 2022 09:55:50(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 857Was 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.
 Parlepanpindipon #10 Posted : 27 September 2022 11:20:48(UTC) Rank: NewbieGroups: 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
 Davide Carpi #11 Posted : 27 September 2022 11:35:46(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 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 please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
 Parlepanpindipon #12 Posted : 27 September 2022 12:00:48(UTC) Rank: NewbieGroups: 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?
 Parlepanpindipon #13 Posted : 27 September 2022 12:08:12(UTC) Rank: NewbieGroups: 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?
 Davide Carpi #14 Posted : 27 September 2022 12:24:19(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 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 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
 Jean Giraud #15 Posted : 27 September 2022 14:02:43(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,245Was thanked: 915 time(s) in 743 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 mapleYou have to code it as exemplified.Cheers ... Jean. Maths sin2(x) plot.sm (7kb) downloaded 1 time(s).
 Jean Giraud #16 Posted : 27 September 2022 14:32:39(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,245Was thanked: 915 time(s) in 743 post(s) ... Previous Smath document has been removed from Smath Community.
 Davide Carpi #17 Posted : 27 September 2022 14:36:48(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,523Location: ItalyWas thanked: 1267 time(s) in 833 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 3 time(s).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
 Parlepanpindipon #18 Posted : 27 September 2022 16:19:15(UTC) Rank: NewbieGroups: 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 3 time(s).Thx, very much
 Jean Giraud #19 Posted : 27 September 2022 18:58:16(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,245Was thanked: 915 time(s) in 743 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 !
 Jean Giraud #20 Posted : 28 September 2022 01:34:52(UTC) Rank: GuestGroups: Registered Joined: 04/07/2015(UTC)Posts: 6,245Was thanked: 915 time(s) in 743 post(s)
 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.