RATPOW

버전 1.0.0.0 (719 Bytes) 작성자: Mukhtar Ullah
Raise to rational power.
다운로드 수: 1.9K
업데이트 날짜: 2004/11/17

라이선스 없음

RATPOW Raise to rational power.

RATPOW(X,A,B) raises each element of array X to the power of its
corresponding element in array A./B, where both A and B must be
integers. Elements of B corresponding to negative elements of X must
be odd.

RATPOW(X,R) for real R, is same as RATPOW(X,A,B) where [A,B] = RAT(R).

Input arguments must be floating point arrays of reals.

See also radical,realpow.

Example:

>> x = [-1 -64; 81 32]; a = [1 1;2 2]; b = [3 3;4 5];
>> ratpow(x,a./b)

ans =

-1 -4
9 4

-----------------------------------------------------------------------
>> x.^(a./b)

ans =

0.5000 + 0.8660i 2.0000 + 3.4641i
9.0000 4.0000

>> realpow(x,a./b)
??? Error using ==> realpow
Realpow produces complex result.
-----------------------------------------------------------------------

인용 양식

Mukhtar Ullah (2024). RATPOW (https://www.mathworks.com/matlabcentral/fileexchange/6172-ratpow), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Arithmetic Operations에 대해 자세히 알아보기
도움

받음: RATPOW

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

optimised for integer inputs.