Bosco Emmanuel

10 Reputation

2 Badges

7 years, 76 days

MaplePrimes Activity


These are replies submitted by Bosco Emmanuel

@Carl Love 

Dear Carl,

Thanks for your comment. However I checked the code which I ran. It had the ~s though it disppeared when I copied from maple work space into the mapleprimes comment box.

To be doubly sure, I once again ran it. I got only the earlier answer. 

Please tell me where I might have gone wrong.

Thanks.

Cordially,

Bosco Emmanuel 

 

@tomleslie 

Dear Tomleslie,

I am sorry that the maple functions suggested by you failed to give the desired result. It says: 

> restart; solution := {p[1] = 2.788944999, p[2] = 4.940143518}, {p[1] = 15.29764736, p[2] = 4.946617373}; M1 := Matrix(convert([solution], list)); M2 := rhs(Matrix(convert([solution], list)));
                 {p[1] = 2.788944999, p[2] = 4.940143518}, 

                   {p[1] = 15.29764736, p[2] = 4.946617373}
                           Matrix(%id = 154274904)
Error, invalid input: rhs received Matrix(1, 2, {(1, 1) = {p[1] = 2.788944999, p[2] = 4.940143518}, (1, 2) = {p[1] = 15.29764736, p[2] = 4.946617373}}), which is not valid for its 1st argument, expr

All the same let me thank you for your kind efforts.

The suggestion by Carl worked and I am happy.

Cordially,

Bosco Emmanuel 

 

@Carl Love 

Dear Carl,

The matrix initializer function suggested by you does the job. Great! Thanks again.

I would greatly appreciate your answer to one more related question:

My maple code generates a large number of solutions. Though I know the number of unkowns which is the number of columns in the matrix, the number of solutions which is the number of rows in the matrix will not be known beforehand. Is there a maple command to find the number of rows from the solution set ? Though I can visually inspect the solution set to obtain this number, it is tedious for a large number of solutions and a large number of unkowns.

Thank you very much for all your help.

The reason I could not reply to you yesterday was that I am visiting my office only every other day and I do not have maple at home.[About me: A retired scientist presently a visiting professor at Institute of Mathematical Sciences here at Chennai, India and working on the human heart].

Cordially,

Bosco Emmanuel 

 

 

 

@tomleslie 

I am leaving office for home. I will try your suggestion and let you know.

Thanks again.

@Carl Love 

This is office closing time here in India.I am on my way back home. I will try your suggestion and let you know.

Thanks again. 

1 2 3 Page 3 of 3