question of roots

question of roots - Messaggi

#1 Pubblicato: 31/08/2023 15:43:11
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

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

1.jpg
#2 Pubblicato: 01/09/2023 01:10:52
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 utenti hanno apprezzato questo post
sergio 01/09/2023 04:49:00
#3 Pubblicato: 01/09/2023 13:43:31
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: 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 Pubblicato: 02/09/2023 15:07:12
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 02/09/2023 18:51:05
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 02/09/2023 20:35:19
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: 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
  • Nuovi post
  • Nessun nuovo post