question of roots

question of roots - Сообщения

#1 Опубликовано: 31.08.2023 15:43:11
Prmtv

Prmtv

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

Группа: User

Hello. I can't understand. Why does it turn out 4 roots or not 2? Thanks.

1.jpg
#2 Опубликовано: 01.09.2023 01:10:52
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. Because that's how what might be called "scalar expansion" for sys() works. Perhaps the result you are looking for is this using vectorize()

Clipboard01.png

Best regards.
Alvaro.
1 пользователям понравился этот пост
sergio 01.09.2023 04:49:00
#3 Опубликовано: 01.09.2023 13:43:31
Prmtv

Prmtv

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

Группа: User

Wrote

Hi. Because that's how what might be called "scalar expansion" for sys() works. Perhaps the result you are looking for is this using vectorize()

Clipboard01.png

Best regards.
Alvaro.



Thanks!

How it is better to set then an array of the data? Need to get a solution for some data (for example: values a 4, 5, 6, 7...)
Matrix didn't work either.
#4 Опубликовано: 02.09.2023 15:07:12
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote

How it is better to set then an array of the data?



Hi. Supposedly, vectorize operates only on matrices.

Wrote

Need to get a solution for some data (for example: values a 4, 5, 6, 7...) Matrix didn't work either.



It should have worked. Do you have an example of how it didn't work?

Best regards.
Alvaro.
#5 Опубликовано: 02.09.2023 18:51:05
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

How it is better to set then an array of the data? Need to get a solution for some data (for example: values a 4, 5, 6, 7...)


Visit the Samples ... find zillions of examples.

#6 Опубликовано: 02.09.2023 20:35:19
overlord

overlord

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

Группа: Moderator

Wrote

How it is better to set then an array of the data?
Need to get a solution for some data (for example: values a 4, 5, 6, 7...)


You can use range() functions.

2023-09-03_02-35.png
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений