how to solve the multiple nonlinear equation from last tern EXP

2 vues (au cours des 30 derniers jours)
gourav pandey
gourav pandey le 7 Déc 2018
clc;
close all;
clear all;
n=3;
syms a0;
a=sym('a', [1 2*n]);
w=sym('w', [1 n]);
x=sym('x', [1 n]);
% syms ww
I1(1)=sym(zeros(1,1));
for j=1:n
f(1)=a0;
for i=1:2*n-1
f(i+1)=f(i)+a(i)*x(j)^i;
end
fun=f(end);
I1(1)
I1(j+1)=I1(j)+w(j)*fun
end
I2 = I1(end);
fun_hand(x(n))=fun;
I3=int(fun,x(end),-1,1)-I2;
temp=coeffs(I3,a0);
coeff_a(1)=temp(2);
for i=1:2*n-1
temp=coeffs(I3,a(i));
coeff_a(i+1)=temp(2);
end
for i=1:2*n
exp(i)=coeff_a(i)==0
end

Réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by