error: Divisor matrix must be square

error: Divisor matrix must be square - Messages

#1 Posted: 2026/2/11 00:35:43
Anna Ziobrowska

Anna Ziobrowska

0 likes in 3 posts.

Group: 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
Edited 2026/2/11 00:36:16
#2 Posted: 2026/2/11 08:58:30
sergio

sergio

126 likes in 341 posts.

Group: User

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

Solver_ktJm0bnT8D.png
sergio
1 users liked this post
Anna Ziobrowska 2026/2/11 14:56:41
#3 Posted: 2026/2/11 11:24:24
Anna Ziobrowska

Anna Ziobrowska

0 likes in 3 posts.

Group: 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 Posted: 2026/2/11 12:18:58
sergio

sergio

126 likes in 341 posts.

Group: User

The external function "asin" should be evaluated element-wise.
sergio
Solver_KqV4kAjf40.png
1 users liked this post
Anna Ziobrowska 2026/2/11 14:56:38
#5 Posted: 2026/2/11 13:52:31
Anna Ziobrowska

Anna Ziobrowska

0 likes in 3 posts.

Group: User

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

sergio

126 likes in 341 posts.

Group: 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) downloaded 347 time(s).
  • New Posts
  • No New Posts