Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 07-22-2009 06:47 PM
(1420 views)

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

Best Regards,

Amani

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

In general r to the a power will be multi-valued and complex if r is negative and a is non-integer

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

No, what I am saying is that no matter what package you use, when you start dealing in the complex plane things become much more complicated. Raising a number to a power is straight-forward in real arithmetic using real numbers, but in the complex plane if the exponent is not integral there are multiple answers with different physical interpretations. In order to know what to do you need to understand how you got to that situation in the first place and what you are really looking for. See http://en.wikipedia.org/wiki/Exponential_function#On_the_complex_plane

📢

**ANNOUNCEMENT**

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.** **

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.