michele

90 Reputation

4 Badges

5 years, 315 days

MaplePrimes Activity


These are questions asked by michele

I created an image by a matrix 8x8:

M:=1/255*RandomMatrix(8,generator=0..255):
G:=convert(M,image):
Embed(G)

but the image dispayed is very small, of course. Is there a way to visualize the 8x8 pixel image larger, so I can see the pixels?

Using Eigenvalues and Eigenvectors commands with symmetric matrices (so real eigenvalues) I get something like

Can I avoid "+0.I"?
Thanks

I want to define a multivariate function f(x1,x2) and its gradient f1(x1,x2) in order to calculate

f(X)=f(X[0])+grad(f(X[0])*(X-X[0])

I try in this way:

with(LinearAlgebra);
f := x -> x[1]^2 + x[2]^2
f1 := x -> <diff(f(x), x[1]), diff(f(x), x[2])>
A := <2,3>
f(A)
     13
f1(A)
     Error, (in f1) invalid input: diff received 2, which is not valid for its 2nd argument
 

What is wrong and how could I define f1(x) in order to write f1(A) for the gradient of f calculated  at A?
Thanks

With the latest version of Maple I get an indenting space when I click "Shift+Enter".
For example 

But I don't like it: suggestion? Thanks

Whenever I call RandomGraph(20,200), Maple crashes both on the laptop and on the PC: any suggestion?

with(GraphTheory); with(RandomGraphs)

interface(version)

`Standard Worksheet Interface, Maple 2024.1, Windows 10, June 25 2024 Build ID 1835466`

(1)

G := RandomGraph(20, 200)


Download crash.mw

1 2 3 Page 1 of 3