Results 1 to 5 of 5

Math Help - Determinant in Maple

  1. #1
    Newbie
    Joined
    Dec 2011
    Posts
    3

    Determinant in Maple

    Hi all !!
    I'm trying to create a determinant code in Maple, or to find how the determinant is coded in the library.
    I had a look on the internet but didn't find anything, could anyone help me ?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Master Of Puppets
    pickslides's Avatar
    Joined
    Sep 2008
    From
    Melbourne
    Posts
    5,234
    Thanks
    27

    Re: Determinant in Maple

    Maple has its own function you can call, but i'm guessing you want to write one yourself?

    Is your matrix a fixed order?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Dec 2011
    Posts
    3

    Re: Determinant in Maple

    Yes, you're right, I need a code, either mine or not, it even may be in Maple's library, but I need the explicit code so as to be able to explain it and how it works.
    It must be for any matrix order (I could for n<=4, but further i think I'd be quickly lost, and for any size, I don't manage ...)
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Master Of Puppets
    pickslides's Avatar
    Joined
    Sep 2008
    From
    Melbourne
    Posts
    5,234
    Thanks
    27

    Re: Determinant in Maple

    If you need only to code it for 2x2, 3x3 or 4x4 then your function could have the matrix as the input, firstly it should find the order, if the order is not 2x2, 3x3 or 4x4 then return an error message other wise find the determinant using hardcoded calcs and the matrix elements.

    Psuedo Code could be:

    Input Matrix
    Find Order (count rows, count columns) for mxn matirx
    If m not equal to n or n,m >4, return an error
    Else
    Find deteminant
    if m=2, then a11*a22-a12*a21
    if m=3, then a11*(a22*a33-a32*a23)+...
    if m=4, then .....
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Dec 2011
    Posts
    3

    Re: Determinant in Maple

    Yeah, but I need the code to be applyable for ANY order, and will probably have to give an exemple with dim(M)=10.
    There's no way I code all possibilities from 1 to 10 ... =S
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: November 30th 2011, 02:25 PM
  2. what does maple want?
    Posted in the Math Software Forum
    Replies: 0
    Last Post: September 27th 2011, 09:06 PM
  3. trying to take determinant of matrix using Maple
    Posted in the Math Software Forum
    Replies: 1
    Last Post: March 29th 2011, 09:08 PM
  4. ODE in Maple
    Posted in the Math Software Forum
    Replies: 5
    Last Post: June 24th 2009, 07:29 AM
  5. Maple 11
    Posted in the Math Software Forum
    Replies: 10
    Last Post: April 10th 2008, 06:56 PM

Search Tags


/mathhelpforum @mathhelpforum