% Guass Seidal Method
syms x1 y1 z1 f1 f2 f3 f4 f5 f6 f7 f8 f9,
syms a b c fc1 fc2 fc3 ,
disp( ' Values of 1st Eqs.... ');
f1=input('Enter value of coefficient of a :');
f2=input('Enter value of coefficient of b :');
f3=input('Enter value of coefficient of c :');
fc1=input('Enter value of coefficient of B1 :');
disp( ' Enter values of 2nd Eqs : ');
f4=input('Enter value of coefficient of a :');
f5=input('Enter value of coefficient of b :');
f6=input('Enter value of coefficient of c :');
fc2=input('Enter value of coefficient of B2 :');
disp( ' Enter values of 3rd Eqs : ');
f7=input('Enter value of coefficient of a :');
f8=input('Enter value of coefficient of b :');
f9=input('Enter value of coefficient of c :');
fc3=input('Enter value of coefficient of B3 :');
A=[ f1*a f2*b f3*c ; f4*a f5*b f6*c ; f7*a f8*b f9*c;]
x1=(fc1/f1);
y1=(fc2-(f4*x1))/f5; % upper value of x1 is used
z1=(fc3-(f7*x1)-(f8*y1))/f9; % upper values of x1 & y1 is used
for i=1:1:5
a=((1/f1)*(fc1-(f2*y1)-(f3*z1))); % use above values
b=((1/f5)*(fc2-(f4*a)-(f6*z1))); % use NEW X-value
c=((1/f9)*(fc3-(f7*a)-(f8*b))); % use NEW X&Y-values
x1=a;
y1=b;
z1=c;
end
disp(' Value of A is : ',a);
disp(' Value of B is : ',b);
disp(' Value of C is : ',c);
Final.rar_UWF_interpolation
版权申诉
135 浏览量
2022-07-14
18:22:36
上传
评论 1
收藏 7KB RAR 举报
邓凌佳
- 粉丝: 65
- 资源: 1万+
最新资源
- Easy Save - 3.5.6
- 基于tensorflow的目标检测系统源码+部署教程文档+全部数据+训练好的模型(高分项目)
- 基于Python皮肤电信号的情绪识别算法源码+模型+PPT+详细文档+全部数据资料.zip
- 基于Python皮肤电信号的情绪识别算法源码+模型+PPT+详细文档+全部数据资料.zip
- 区块链毕业设计 基于区块链的慈善募捐平台的智能合约源码+详细文档+全部资料(高分项目).zip
- 区块链毕业设计 基于区块链的慈善募捐平台的智能合约源码+详细文档+全部资料(高分项目).zip
- 区块链毕业设计 基于区块链的慈善募捐平台的智能合约源码+详细文档+全部资料(高分项目).zip
- 免费听歌软件,支持无损音乐下载,支持收藏音乐同步
- 锐起RDV-5.0 build 6503
- ngrok-stable-windows-amd64.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0