Programação envolvendo matrizes

Programação envolvendo matrizes - Сообщения

#1 Опубликовано: 01.06.2025 18:46:05
Diego Kaleu Araújo Barreto

Diego Kaleu Araújo Barreto

0 сообщений из 2 понравились пользователям.

Группа: User

Can someone help me with this question? I tried to make some improvements but was unsuccessful.

MatrixProgramming.sm (15 КиБ) скачан 35 раз(а).
Captura de tela 2025-06-01 153907.png
#2 Опубликовано: 03.06.2025 09:24:30
StvMath

StvMath

37 сообщений из 58 понравились пользователям.

Группа: User

There are several problems here:

1. z and y have a different number of elements. If you want to stack them as one column on top of another that's ok. However, if you want to stack them as two rows they need to be the same length (i.e. have the same number of columns).

2. epsilon.c is yet a different length! It isn't the same as the length of f.ck either.

3. When calculationg Z and Y you need an explicit multiply sign between the x and the following bracket.

4. I suspect you need subscripts on Z, x and epsilon.c when calculating Z. Similarly for Y.

5. You calxculate epsilon.cu in each part of the if .. else statement, but don't ever use it.

There are probably other errors, but since it's not totally clear to me exactly what you want (as there is no explanation anywhere) that's about as much as I can help with.
1 пользователям понравился этот пост
Andrey Ivashov 03.06.2025 13:47:19
#3 Опубликовано: 03.06.2025 16:51:25
Diego Kaleu Araújo Barreto

Diego Kaleu Araújo Barreto

0 сообщений из 2 понравились пользователям.

Группа: User

Thanks for asking. I'll fix it.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений