Re: [sage-support] Re: integrating a matrix

2015-07-16 Thread Nils Bruin


On Thursday, July 16, 2015 at 3:57:20 AM UTC+2, fidelbc wrote:

 Maybe you can try implementing something along these lines

 *def integrate_matrix(A):*
 *m = A.nrows()*
 *n = A.ncols()*
 *return matrix(m,n, [entry.integrate() for row in A for entry in row 
 ])*

 If you want to have the entries of a matrix you can get them without 
having to construct intermediate rows:

matrix(m,n, [entry.integrate() for entry in A.list()]

 

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: integrating a matrix

2015-07-16 Thread fidelbc
Thanks for the input Nils!

On Thursday, July 16, 2015 at 4:04:01 AM UTC-4, Nils Bruin wrote:



 On Thursday, July 16, 2015 at 3:57:20 AM UTC+2, fidelbc wrote:

 Maybe you can try implementing something along these lines

 *def integrate_matrix(A):*
 *m = A.nrows()*
 *n = A.ncols()*
 *return matrix(m,n, [entry.integrate() for row in A for entry in row 
 ])*

 If you want to have the entries of a matrix you can get them without 
 having to construct intermediate rows:

 matrix(m,n, [entry.integrate() for entry in A.list()]

  


-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Re: integrating a matrix

2015-07-15 Thread fidelbc
Maybe you can try implementing something along these lines

*def integrate_matrix(A):*
*m = A.nrows()*
*n = A.ncols()*
*return matrix(m,n, [entry.integrate() for row in A for entry in row ])*


On Wednesday, July 15, 2015 at 12:33:21 PM UTC-4, avi kaur wrote:

 On Wed, Jul 15, 2015 at 5:55 PM, Dima Pasechnik dim...@gmail.com 
 javascript: wrote:
  It's not clear what this means mathematically, please explain.
 I have to solve out the following problem with sage math.


 ​


 --  
 Avi kaur
 Blog: https://avikashyap620.wordpress.com
 There is no lacking of opportunity, The thing is you do not want to 
 see It




-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.