Find y(x)

Find y(x) - Сообщения

#1 Опубликовано: 26.09.2022 18:13:07
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 26.09.2022 18:17:37
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 26.09.2022 18:21:06
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 26.09.2022 18:37:29
churichuro

churichuro

28 сообщений из 79 понравились пользователям.

Группа: User

#5 Опубликовано: 26.09.2022 18:57:35
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 26.09.2022 19:16:16
overlord

overlord

551 сообщений из 1332 понравились пользователям.

Группа: Moderator

Let's visualize what Martin has perfectly described.

2022-09-27_01-13_1.png
#7 Опубликовано: 27.09.2022 02:02:16
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: User

Wrote



Oh, I'm sorry, could you tell me how to make a vector over y(x)?
#8 Опубликовано: 27.09.2022 02:56:56
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 03:55:50
overlord

overlord

551 сообщений из 1332 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 05:20:48
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 05:35:46
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 06:00:48
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 06:08:12
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 06:24:19
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 КиБ) скачан 20 раз(а).


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 Опубликовано: 27.09.2022 08:02:43
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 КиБ) скачан 21 раз(а).

#16 Опубликовано: 27.09.2022 08:32:39
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

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

Vincenti.PNG
#17 Опубликовано: 27.09.2022 08:36:48
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 КиБ) скачан 30 раз(а).
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 Опубликовано: 27.09.2022 10:19:15
Parlepanpindipon

Parlepanpindipon

0 сообщений из 9 понравились пользователям.

Группа: 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 КиБ) скачан 30 раз(а).
2022-09-27 14_02_53-SMath Solver - [Parlepanpindipon_sin2(x).sm].png



Thx, very much
#19 Опубликовано: 27.09.2022 12:58:16
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 27.09.2022 19:34:52
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

ClassRoom.PNG
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений