wxmaxima. Defining a function of three variables

Asked

Viewed 99 times

2

I’m trying to do some symbolic/algebraic calculations in wxmaxima. But I’m having syntax problems.

Question. Let 'n' and’m' be previously stipulated integers. What is the syntax/'command line', as well as a suitable recursive procedure, to define a function 'A(i,j,k)' of three integer variables 'i','j' and 'k' in the language of wxmaxima?

I would like the variables 'i' and 'j' to traverse all integers from '1' to 'n'. And that the variable 'k' ran through all integers from '0' to’m'.

The goal is to use the 'A(k)(i,j)' output as symbolic variables for agaric calculations.

Update 11/08/2016 14h21 (UTC-3)

My main area of expertise is theoretical mathematics. I have some experience with algorithms structured at a theoretical level and very little familiarity with programming languages, compilers and their respective interfaces. So I apologize if this issue is too easy or not equated in the Stackoverflow perpectives.

My attempts can be downloaded at the following links: teste4 and teste3.

Update 09/08/2016 9h30 (UTC-3). Being a little more detailed with what I mean by algebraic/symbolic calculus. I have a total of symbols ( to the whole product nnm symbols ) of syllabic variables 'A(k)(ij)' indexed by 'i','j' and 'k' with the property that A(k)(i,j)=A(k)(j,i). Explicitly:

If k=1 we have the symmetric matrix A(1) of order nxn with Siberian entries A(1)(i,j);

|A(1)(1,1), A(1)(1,2),A(1)(1,3),...,A(1)(1,n) |

|A(1)(2,1), A(1)(2,2),A(1)(2,3),...,A(1)(2,n) |

|A(1)(3,1), A(1)(3,2),A(1)(3,3),...,A(1)(3,n) |

|...................................................................|

|A(1)(1,n), A(1)(2,n),A(1)(3,n),...,A(1)(n,n) |

If k=2 we have matrix A(2) of order nxn with Siberian entries A(2)(i,j);

|A(2)(1,1), A(2)(1,2),A(2)(1,3),...,A(2)(1,n) |

|A(2)(2,1), A(2)(2,2),A(2)(2,3),...,A(2)(2,n) |

|A(2)(3,1), A(2)(3,2),A(2)(3,3),...,A(2)(3,n) |

|.....................................................................|

|A(2)(n,1), A(2)(n,2),A(2)(n,3)...,A(2)(n,n) |

And so on until we get to matrix A(m) of order nxn with Indian entries A(m)(i,j);

|A(m)(1,1), A(m)(1,2),A(m)(1,3),...,A(m)(1,n) |

|A(m)(2,1), A(m)(2,2),A(m)(2,3),...,A(m)(2,n) |

|A(m)(3,1), A(m)(3,2),A(m)(3,3),...,A(m)(3,n) |

|....................................................................|

|A(m)(n,1), A(m)(n,2), A(m)(n,3),...,A(m)(n,n) |

I searched several tutorials on the internet unsuccessfully.

I hope I have achieved the clarity necessary for an objective response.

  • 1

    What is the relationship between i, j and k? if i and j are 0 what is the value of k? and when i and j are 1? and what is the language you want to use?

  • 1

    @Sergio variables 'i', 'j' and 'k' are independent of each other. That is, the value that 'i' assumes does not interfere with the value of 'j' or the value of 'k', the value that 'j' assumes does not interfere with the value of 'i' or the value of 'k', the value that 'k' assumes does not interfere with the value that 'i' or 'j'.

  • 1

    @Sergio as the programming language imagined that CAS wxmaxima has its own language very similar to MAPLE or a possible variation of C.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.