Mintoris Forum

Author Topic: Raising to a power  (Read 3172 times)

lancegary

  • Full Member
  • ***
  • Posts: 24
Raising to a power
« on: Jan 24, 2011, 09:42 AM »
My testing suggests that

C() = A()^2

generates an error, but

C() = A() * A()

gives a correct result (the squares of all the values in A().

I'm not complaining about this - I'm just noting the result. Again I think the array programming features of Mintoris BASIC are great.

Lance

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: Raising to a power
« Reply #1 on: Jan 25, 2011, 03:30 AM »
My testing suggests that

C() = A()^2

generates an error, but

C() = A() * A()

gives a correct result (the squares of all the values in A().

I'm not complaining about this - I'm just noting the result. Again I think the array programming features of Mintoris BASIC are great.

Lance

Hmm, thats never come up before.  I'll add an exponent function to the matrix expression parser.  It will be in the next version.
« Last Edit: Jan 25, 2011, 03:34 AM by Chuck »

lancegary

  • Full Member
  • ***
  • Posts: 24
Re: Raising to a power
« Reply #2 on: Jan 26, 2011, 11:28 AM »

Hmm, thats never come up before.  I'll add an exponent function to the matrix expression parser.  It will be in the next version.

Gee‼ Thank you.

Lance

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: Raising to a power
« Reply #3 on: Feb 04, 2011, 03:03 AM »
I haven't forgotten about the exponent function.  I just have to make sure there are no problems with the current version before I add any new features.