question of roots

question of roots - Mensajes

#1 Publicado: 31/8/2023 15:43:11
Prmtv

Prmtv

0 me gusta en 49 mensajes.

Grupo: User

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

1.jpg
#2 Publicado: 1/9/2023 1:10:52
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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.
A 1 usuarios les gustó este mensaje
sergio 1/9/2023 4:49:00
#3 Publicado: 1/9/2023 13:43:31
Prmtv

Prmtv

0 me gusta en 49 mensajes.

Grupo: 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 Publicado: 2/9/2023 15:07:12
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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 Publicado: 2/9/2023 18:51:05
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 2/9/2023 20:35:19
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: 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
  • Nuevos mensajes
  • Sin mensajes nuevos