Dynamic-Calibration/utils/YALMIP-master/extras/sqrtm_internal.m

8 lines
81 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function y = sqrtm_internal(x)
if x>=0
y = sqrt(x);
else
y = -x.^2;
end