kharal9's blog

Hi, how we can get the min of two real-valued piecewise continuous functions as another piecewise function. To me Maple responded with min(fn1,fn2), which I dont need. Plz hep.

How to do Interval Math in Maple 9

Hi, I want to carry out set-theoretic operations on real-line intervals.  For example

> [2,5] intersect [3,7];
 

Is there any package available for this and interval arithmetics?

Thanks.

Hi, I have a table of tables like the following one.

fss:= [{a, b, c}, table([e4 = table([a = .4, b = .7, c = 1]), e1 = table([a = .2, b = 0, c = .1]), e2 = table([a = .1, b = 1, c = .4])]), {e1, e2, e3, e4}];
 

Now I want to compute fss[2][e4][b]/2.0 but Maple does not recognize table entry as a number. What I should do? What is the reason for this behaviour?

 

From Maple to Scientific Workplace

Hi, I am facing a problem to copy the Maple output into SWP5.0. When I paste the output, generated by 

print(expression,latex);

in SWP it remains mere ASCII. Kindly guide me. Thanx.

An unusual matrix is to be generated

We have a list of random binary numbers, say, A=[1,1,0,0,1,0]. Based upon A we want to write a matrix M=[a(i,j)] of order 5x5, where each a(i,j) is a list of length(A), comprising real numbers in closed interval [0,1]. All these reals in a(i,j) are less or equal to the corresponding entry in A.
 
Furthermore, the matrix rows and columns have to satisfy following conditions:

1. min(a(i,r),a(i,s))=[0,0,0,0,0,0] for every i,r,s such taht r<>s.
   min(a(r,j),a(s,j))=[0,0,0,0,0,0] for every i,r,s such taht r<>s.

Creating Graph from its Adjacency Matrix

Suppose the adjacency matrix M is given. How we can get the graph of it from Maple? Can we draw the graph now?

Thanx.

Boolean matrices in Maple

Hi,
I was wondering, how the Boolean matrices can be operated (multiplied, added etc) in Maple? Can we find their eigenvalues etc? Your reply would do great help to me. Many Thanks.

Athar Kharal

Help in producing all possible pairs of Lists

Suppose I have two lists of equal length, namely List1 and List2, whose elements are numbers from the list

M=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]:

Both the lists have to satisfy following condition:

List1[x]+List2[x]<= 1 for each elemnt at x in List1 and List2.

We want to get collection of all the pairs of such lists which satisfy above conditions.
thanks

Converting "2" into a number

Hi,
I am having trouble with the list L:=["2", "abcde"]. I want to get L[1]/4=.5. But L[1] is not a number. How can I convert that?
Thanks.

How to convert a string to list

I have a string in the form
ss:="abcd # efg # hijk, lm_r, stuv_k":

Is it possible now to write it as

[ [abcd], [efg], [hijk, lm_r, stuv_k] ]:

Thanx,
Kharal

Syndicate content
}