Christopher2222

MaplePrimes Activity


These are questions asked by Christopher2222

How would you highlight specific numbers in a list?
For example, using
a:=[1,3,4,5,3,4,9,4,5,3,9,2,3,4,2,5,21,32,22,12,15,3,2,5,4]

Highlight all the 5's in the list to red for example like this

            

 

I guess this command got missed?

with(ColorTools)

?ColorString

 

 

Suppose I have

with(GraphTheory):
vertices:=["M","P","C"]:
edge_weights:={[{"M","P"},3],[{"M","C"},1]}:

G1:=Graph(vertices,edge_weights)

EigenvectorCentrality(G1)
                                                  

Is it right to say the EigenvalueCentrality values correspond to the names in the vertices correspondingly?  ie M corresponds to 0.4415.. P corresponds to  0.4188.. and C corresponds to 0.1396... ?

Mainly just symantics, Maple often shifts -'ve terms to the front, how to re-orient terms so the positive terms are always first?

a:= (a2b1-a1b2)*j1+(a4b4-a3b5)*j2

                           ( - a1b2 + a2b1) * j1 + ( - a3b5 + a4b4) * j2

Is this a bug?

eq:=5*x+y-10=0:
eq2:=y=solve(eq,y):

f:=(x,y)->eq2
                              
f(3,1)
                   

I think the way I applied it above is a bit unorthodox to Maple but maybe it is a bug.  Normally I think we use unapply in this situation. 

f:=unapply(eq2,x,y)
                             
f(3,1)
                     

Okay better, but I think that first way should work no?

 

1 2 3 4 5 6 7 Last Page 1 of 86