## 105 Reputation

12 years, 91 days

## what does `:=` means?...

Hi, i wrote my script file some time ago, and found that I wrote `:=` in one of the equations. when I remove the ``, just let it be :=, it does not work and is spending a long time to evaluate. May I know what does `:=` means please?

Thanks.

## How do I change the answer by changing t...

I have a variable x, and trying to get an output of E00. Here is what I have :

with(LinearAlgebra):
x:=2:
g:=Matrix([[3ξ+5x,8x-7ξ,2ξ],[ξ,4ξ+9x,7ξ].[5ξ,ξ,4x-6ξ]]):
h:=RandomMatrix(3):
p:=g.h:
E00:=(map(int,p,ξ=1..3))

I would like to change x to 2,4,6,8,16 and have different output of E00 and later on plot a graph. I have been trying to run them seperately. Is there a way for me to key in the inputs of x at one go? Please help. Thank you very much.

## How to change only the diagonal values i...

Hi, may I know how do I change only the diagonal to certain values please? Thank you.

with(LinearAlgebra):
M:=RandomMatrix(6):
G:=DiagonalMatrix(RandomVector(6)):

Question 1: How do I change the diagonal part to a certain value for example 'a'?
Question 2: How do I change the diagonal part to the vector G?

## How to have 2 output in one if statement...

Hi, I have a statement and when b is greater than 3, I would like two outputs which are z and y. But I can't seem to have it working. Please help. Thanks.

a:=2:b:=4:c:=7:d:=2:

this is what i wrote:
if b>3 then z:=a and y:=c elif b<3 then z:=d and y:=a end if:

## what is "ismember" in matlab called in m...

Maple

Hi, may I know what is the function "ismember" in matlab called in maple please? Thanks.

 5 6 7 8 9 10 11 Last Page 7 of 17
﻿