question of roots

question of roots - Poruke

#1 Objavljeno: 31. 8. 2023. 15:43:11
Prmtv

Prmtv

0 svidjanja u 49 postova.

Grupa: User

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

1.jpg
#2 Objavljeno: 1. 9. 2023. 01:10:52
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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 korisnika je svidelo ovu objavu
sergio 1. 9. 2023. 04:49:00
#3 Objavljeno: 1. 9. 2023. 13:43:31
Prmtv

Prmtv

0 svidjanja u 49 postova.

Grupa: 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 Objavljeno: 2. 9. 2023. 15:07:12
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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 Objavljeno: 2. 9. 2023. 18:51:05
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 2. 9. 2023. 20:35:19
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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
  • Novi postovi
  • Nema novih postova