Professional Documents
Culture Documents
Cs = [1 2; 2 4]
Symbolic as above by wrapping each number in sym. Create a numerical version via Cn = double (Cs) and
define the two vectors d1 = [4; 8] and d2 = [1; 1]. Solve the system (as in the third line of code above)
Cs*x = d1, Cn*x = d1, Cs*x = d2, and Cn*x = d2. Explain the results. Does the symbolic or non-symbolic
way give more information?
>> SymbolicandNonsymbolic
B=
[ sin(1), sin(2)]
[ sin(3), sin(4)]
c=
x=
/ 2 sin(2) - sin(4) \
| - ----------------------------- |
| |
| 2 sin(1) - sin(3) |
| ----------------------------- |
Cs =
1 2
2 4
B1 =
[ sin(1), sin(2)]
[ sin(2), sin(4)]
c1 =
x1 =
/ 2 sin(2) - sin(4) \
| - ----------------------- |
| 2|
| |
| 2 sin(1) - sin(2) |
| ----------------------- |
| 2 |
ds1 =
4
ds2 =
ans =
ans =
Cn =
1 2
2 4
B2 =
0.8415 0.9093
0.9093 -0.7568
c2 =
x2 =
1.7596
-0.5286
ans =
1.7596
-0.5286
dn1 =
dn2 =
1
ans =
ans =