Solving implicit equation for three variables
古いコメントを表示
I want to solve the supersphere equation x^n+y^n=1 for x_range=y_range=.1:.1:1 and n=.3:.3:3.
I have done the plot with fimplicit command, but that was improper for me since I cannot find the x and y values for the stacked sequence.
Please help.
h=20; %no of points
x_max=1;
x_min=0.1;
y_max=1;
y_min=0.1;
n_max=3;
n_min=0.1;
dx=(x_max-x_min)/h;
dy=(y_max-y_min)/h;
dn=(n_max-n_min)/h;
[i,j,k] = meshgrid(1:h+1,1:h+1,1:h+1);
x= x_min + (i-1).* dx;
n= n_min + (j-1).* dn;
y= y_min + (k-1).* dy;
numElementsN = length(n);
numElementsX = length(x);
numElementsY = length(y);
U = zeros(numElementsX,numElementsN,numElementsY);
for r=1:numElementsN
for s=1:numElementsX
for p=1:numElementsY
z=fzero(findt,0.1:.1: 1, 0.1:.1: 1, 0.3 :.1: 3);
end
end
end
where, the function findt is referred to
function F=findt(x,y,n)
F = x.^n+y.^n-1;

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!