N/A
Posts: 0

# raising a matrix to power

I have a critical problem.I need to raise a matrix to certain power using (##)operator,the problem is that the power is negative fraction and some elements of the matrix are negative fraction also.the program returuns an error message each time I run it and confirms that the operation couldnot be performed.I donot know how to solve this problem.please I ask for help
Best Regards,
Amani
SAS Employee
Posts: 94

## Re: raising a matrix to power

I assume here that you want to raise the elements of a matrix to a power (and not a matrix to a power) since you are using the ## operator. In general r to the a power will be multi-valued and complex if r is non-negative and a is non-integer, so the question arises, how do you want to handle complex values, and how do you want to choose a particular answer? It might be helpful to look at how these numbers arise and how you are using them?
SAS Employee
Posts: 94

## Re: raising a matrix to power

Oops, I meant to say :

In general r to the a power will be multi-valued and complex if r is negative and a is non-integer
N/A
Posts: 0

## Re: raising a matrix to power

Do you mean that SAS couldnot handle complex numbers and there isnot operators that can be used to calculate what I need in SAS?
If I need to solve this problem I have to write my program on other package that can solve this problem .e.g,MATLAB,?Oh!!!!!!
Best Regards,
Amani
SAS Employee
Posts: 94