이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
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 (2026). RATPOW (https://kr.mathworks.com/matlabcentral/fileexchange/6172-ratpow), MATLAB Central File Exchange. 검색 날짜: .
도움
도움 받은 파일: RATPOW
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.0.0 | optimised for integer inputs. |
