Mathematica - liste til 3.grads polynomie
Hej eksperter.Jeg har eksporteret en matrix fra C++. Alle rækkerne i matrixen udgør hver et 3grads polynomie. Tilsammen udgør de en graf.
Mit spg lyder:
Hvordan får jeg Mathematica til at skrive disse værdier om til
polynomier, så jeg kan plotte dem?
Kdata = Table@KmatD
Out[43]= 88-0.0675095, 0, 0.399045, 0.5<, 80.135019, -0.151896, 0.425876, 0.499621<,
8-0.211717, 0.368208, 0.118795, 0.566478<, 8-0.0210175, -0.0608664, 0.427008, 0.496221<,
80.0124699, -0.161329, 0.52747, 0.462734<, 80.0225753, -0.199224, 0.574839, 0.442996<,
80.029605, -0.230857, 0.622289, 0.419271<, 80.0289573, -0.227457, 0.616338, 0.422743<,
80.0245278, -0.20088, 0.563185, 0.458179<, 80.0183725, -0.159332, 0.4697, 0.528292<,
80.012443, -0.11486, 0.358523, 0.62094<, 80.00768716, -0.0756249, 0.250625, 0.719846<,
80.0043632, -0.0457092, 0.160878, 0.809593<, 80.00228495, -0.0254463, 0.0950233, 0.880936<,
80.00110768, -0.013085, 0.0517587, 0.931411<,
80.000498263, -0.00622901, 0.0260489, 0.963548<,
80.000208209, -0.00274836, 0.0121263, 0.982112<,
80.000081479, -0.00113256, 0.00525908, 0.99184<,
80.0000279088, -0.000409358, 0.00200469, 0.996722<,
80.000015544, -0.00023316, 0.00116775, 0.998047<<
In[44]:= matrixK = MatrixForm
Out[44]//MatrixForm=
-0.0675095 0 0.399045 0.5
0.135019 -0.151896 0.425876 0.499621
-0.211717 0.368208 0.118795 0.566478
-0.0210175 -0.0608664 0.427008 0.496221
0.0124699 -0.161329 0.52747 0.462734
0.0225753 -0.199224 0.574839 0.442996
0.029605 -0.230857 0.622289 0.419271
0.0289573 -0.227457 0.616338 0.422743
0.0245278 -0.20088 0.563185 0.458179
0.0183725 -0.159332 0.4697 0.528292
0.012443 -0.11486 0.358523 0.62094
0.00768716 -0.0756249 0.250625 0.719846
0.0043632 -0.0457092 0.160878 0.809593
0.00228495 -0.0254463 0.0950233 0.880936
0.00110768 -0.013085 0.0517587 0.931411
0.000498263 -0.00622901 0.0260489 0.963548
0.000208209 -0.00274836 0.0121263 0.982112
0.000081479 -0.00113256 0.00525908 0.99184
0.0000279088 -0.000409358 0.00200469 0.996722
0.000015544 -0.00023316 0.00116775 0.998047
Jeg håber der er nogle der kan finde ud af dette
MVH
Niels