question of roots

question of roots - 消息

#1 已发布: 2023/8/31 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 已发布: 2023/9/1 01:10:52
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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 2023/9/1 04:49:00
#3 已发布: 2023/9/1 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 已发布: 2023/9/2 15:07:12
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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 已发布: 2023/9/2 18:51:05
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2023/9/2 20:35:19
overlord

overlord

600个赞,共1,381个帖子。

组: 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
  • 有新帖
  • 无新帖