finding solutions

finding solutions - Сообщения

#1 Опубликовано: 19.05.2021 02:29:14
Vasia

Vasia

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

Группа: User

Hello. Please help with this task. Is it possible in a smath studio to find all the solutions for a by recording the answer through b

help.jpg
#2 Опубликовано: 19.05.2021 04:55:59
sergio

sergio

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

Группа: User

With Vectorization of "b"
SMathStudio_Desktop_CSbjjkGzCL.png

sergio
#3 Опубликовано: 19.05.2021 07:49:54
Vasia

Vasia

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

Группа: User

Wrote

With Vectorization of "b"
SMathStudio_Desktop_CSbjjkGzCL.png

sergio



how did you write the equation and condition under the vector?SMathStudio_Desktop_CSbjjkGzCL.jpg
#4 Опубликовано: 19.05.2021 07:58:01
sergio

sergio

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

Группа: User

I used "Cases" which is a function of the "Custom Functions" plugin but if you didn't install it you could use "if"
vector_aa.sm (4 КиБ) скачан 26 раз(а).

sergio
#5 Опубликовано: 19.05.2021 08:19:45
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Is it possible in a smath studio to find all the solutions for a by recording the answer through b


Make it algo style for more maths suite and more handling.

AlgoSuite.PNG
#6 Опубликовано: 19.05.2021 09:04:02
Vasia

Vasia

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

Группа: User

Wrote

I used "Cases" which is a function of the "Custom Functions" plugin but if you didn't install it you could use "if"
vector_aa.sm (4 КиБ) скачан 26 раз(а).

sergio



Thank you very much. what I need
#7 Опубликовано: 19.05.2021 09:05:15
Vasia

Vasia

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

Группа: User

Wrote

Wrote

Is it possible in a smath studio to find all the solutions for a by recording the answer through b


Make it algo style for more maths suite and more handling.

AlgoSuite.PNG



Thank you very much.
#8 Опубликовано: 19.05.2021 10:19:43
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Make it algo style for more maths suite and more handling.


... you can make it parametric/generalized top to bottom.
#9 Опубликовано: 19.05.2021 15:48:58
overlord

overlord

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

Группа: Moderator

Wrote

Wrote

I used "Cases" which is a function of the "Custom Functions" plugin but if you didn't install it you could use "if"
vector_aa.sm (4 КиБ) скачан 26 раз(а).

sergio



Thank you very much. what I need


There are some eyecandy functions for greater or less in Custom Functions plugins.
Check them too.

Regards

ltlt(); ltle(); lelt(); lele();
gtgt(); gtge(); gegt(); gege();


2021-05-19_21-43.png
#10 Опубликовано: 20.05.2021 05:45:40
Vasia

Vasia

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

Группа: User

Wrote

I used "Cases" which is a function of the "Custom Functions" plugin but if you didn't install it you could use "if"
vector_aa.sm (4 КиБ) скачан 26 раз(а).

sergio



please tell me how to complete the cycle in this case?1.jpg
#11 Опубликовано: 20.05.2021 06:54:15
sergio

sergio

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

Группа: User

it's not easy to help you not knowing what you want to achieve. I do not understand if "alpha" has been defined and whether it is scalar or vector. If it were a scalar, you don't need further vectorization in the calculation of "d" as in the example I set you. With many "if" nestled reading is more complicated and I recommend the use of "cases"

vector_ab.sm (6 КиБ) скачан 20 раз(а).
sergio
#12 Опубликовано: 20.05.2021 07:56:35
Vasia

Vasia

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

Группа: User

Wrote

it's not easy to help you not knowing what you want to achieve. I do not understand if "alpha" has been defined and whether it is scalar or vector. If it were a scalar, you don't need further vectorization in the calculation of "d" as in the example I set you. With many "if" nestled reading is more complicated and I recommend the use of "cases"

vector_ab.sm (6 КиБ) скачан 20 раз(а).
sergio



I'm sorry, I didn't specify all the values. I'll try to explain what I need.
I need to find all the values of "d" by a given formula, taking the values of "a" and "α" from a table in which there is a dependence of "a" and "α" on the values of "ϕ" and "λ".

I, by analogy with your example, decided to first find all the values of "a" from the table, taking into account all the variants of "ϕ" and "λ", then the same for "α".
and then just substitute all the sets of values "a" and "α" into the given formula and get all the sets of the answer "d"

I set separate loops for "a" and "α", found their values, and found "d", only the problem is that I need to finish the loop when my conditions are over

1.jpg
#13 Опубликовано: 20.05.2021 08:33:38
sergio

sergio

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

Группа: User

You can put a value that confirms you to be out of the table (for example 0) or a string to manage to report the situation

sergio
#14 Опубликовано: 20.05.2021 08:43:11
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I'll try to explain what I need.


Hard to figure what you need from the blue ! i.e: w/o document.
#15 Опубликовано: 20.05.2021 08:44:35
Vasia

Vasia

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

Группа: User

Wrote

You can put a value that confirms you to be out of the table (for example 0) or a string to manage to report the situation

sergio



this is exactly what I did, but in the end, 0 or the phrase is also entered in the array

1.jpg
#16 Опубликовано: 20.05.2021 09:02:28
Vasia

Vasia

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

Группа: User

Wrote

Wrote

I'll try to explain what I need.


Hard to figure what you need from the blue ! i.e: w/o document.



20210520_145806.jpg

part of the tabular data
#17 Опубликовано: 20.05.2021 09:51:43
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

part of the tabular data


*.jpg is not a working document.
Code my image in your version to make sure it works.
Attach in the forum ... specify + of what you need.
At this point, in-situ, you can define as many conditions
and range at will as well ... Smath Community will be there.
Cheers ... Jean
#18 Опубликовано: 20.05.2021 10:19:37
Vasia

Vasia

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

Группа: User

Wrote

Wrote

part of the tabular data


*.jpg is not a working document.
Code my image in your version to make sure it works.
Attach in the forum ... specify + of what you need.
At this point, in-situ, you can define as many conditions
and range at will as well ... Smath Community will be there.
Cheers ... Jean



calculation.sm (12 КиБ) скачан 26 раз(а).

I can't figure out how to stop the calculation after "else" for "a" and "α"
#19 Опубликовано: 20.05.2021 11:36:08
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I can't figure out how to stop the calculation after "else" for "a" and "α"


... fill-in the last argument of if/else.
As far as I could doctor ... check the Bolean.
Cheers ... Jean

calculation.sm (26 КиБ) скачан 28 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений