question of roots

question of roots - Messages

#1 Posted: 8/31/2023 3:43:11 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: User

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

1.jpg
#2 Posted: 9/1/2023 1:10:52 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 users liked this post
sergio 9/1/2023 4:49:00 AM
#3 Posted: 9/1/2023 1:43:31 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: 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 Posted: 9/2/2023 3:07:12 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 Posted: 9/2/2023 6:51:05 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 9/2/2023 8:35:19 PM
overlord

overlord

547 likes in 1330 posts.

Group: 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
  • New Posts New Posts
  • No New Posts No New Posts