error: Divisor matrix must be square

error: Divisor matrix must be square - Messaggi

#1 Pubblicato: 11/02/2026 00:35:43
Anna Ziobrowska

Anna Ziobrowska

0 apprezzamenti in 3 post.

Gruppo: User

Hi, I got stuck trying to do the following:
image.png
The divisor matrix is:
image.png
image.png
I need the c.mn results
I'll appreciate some help, thank you in advance
Modificato 11/02/2026 00:36:16
#2 Pubblicato: 11/02/2026 08:58:30
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

I imagine you want to achieve element-wise division. You can use the vectorize function.

Solver_ktJm0bnT8D.png
sergio
1 utenti hanno apprezzato questo post
Anna Ziobrowska 11/02/2026 14:56:41
#3 Pubblicato: 11/02/2026 11:24:24
Anna Ziobrowska

Anna Ziobrowska

0 apprezzamenti in 3 post.

Gruppo: User

Thank you, it worked. But now im having a different problem, as shown below:
image.png
Wondering if it's truly unsolvable in Smath since I cant have scalars there bc I have to vectorize the functions
#4 Pubblicato: 11/02/2026 12:18:58
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

The external function "asin" should be evaluated element-wise.
sergio
Solver_KqV4kAjf40.png
1 utenti hanno apprezzato questo post
Anna Ziobrowska 11/02/2026 14:56:38
#5 Pubblicato: 11/02/2026 13:52:31
Anna Ziobrowska

Anna Ziobrowska

0 apprezzamenti in 3 post.

Gruppo: User

Thank you a lot, it worked. Got stuck again here:
image.png
#6 Pubblicato: 11/02/2026 19:15:32
sergio

sergio

127 apprezzamenti in 342 post.

Gruppo: User

Don't confuse subscripts (obtained, for example, with a.1) with array or matrix indices (obtained, for example, with a[1).
sergio01.sm (10,77 KiB) scaricato 707 volta(e).
  • Nuovi post
  • Nessun nuovo post