text
stringlengths 0
211k
|
---|
stop(); |
clrscrn(); |
printf(" With A :"); |
p_mR(A,S8,P4,C7); |
printf(" And b :"); |
p_mR(b,S8,P4,C7); |
printf(" Ab :"); |
p_mR(Ab,S8,P4,C7); |
getchar(); |
clrscrn(); |
printf(" Copy/Past into the octave window.\n\n"); |
p_Octave_mR(Ab,"Ab",P4); |
printf("\n rref(Ab.00000000001)\n\n"); |
printf(" gj_TP_mR(Ab) :"); |
gj_TP_mR(Ab); |
p_mR(Ab,S10,P4,C7); |
printf(" You have x**4 = 16, y**3 = 27, z**2 = 25 \n\n"); |
printf(" These give x = 2, y = 3, z = 5 \n\n\n"); |
stop(); |
f_mR(Ab); |
f_mR(b); |
f_mR(A); |
return 0; |
/* ------------------------------------ */ |
Exemple de sortie écran : |
You have this nonlinear system of equations : |
a x**4 + b y**3 + c z**2 = d |
e x**4 + f y**3 + g z**2 = h |
i x**4 + j y**3 + k z**2 = l |
We write X = x**4; Y = y**3; Z = z**2; |
a X + b Y + c Z = d |
e X + f Y + g Z = h |
i X + j Y + k Z = l |
Ab : |
a b c d |
e f g h |
i j k l |
Press return to continue. |
------------------------------------ |
With A : |
+4.0000 -2.0000 -7.0000 |
+9.0000 -4.0000 -2.0000 |
+1.0000 +6.0000 +9.0000 |
And b : |
-165.0000 |
-14.0000 |
+403.0000 |
Ab : |
+4.0000 -2.0000 -7.0000 -165.0000 |
+9.0000 -4.0000 -2.0000 -14.0000 |
+1.0000 +6.0000 +9.0000 +403.0000 |
------------------------------------ |
Copy/Past into the octave window. |
Ab=[ |
+4.0000,-2.0000,-7.0000,-165.0000; |
+9.0000,-4.0000,-2.0000,-14.0000; |
+1.0000,+6.0000,+9.0000,+403.0000] |
rref(Ab.00000000001) |
gj_TP_mR(Ab) : |
+1.0000 +0.0000 +0.0000 +16.0000 |
+0.0000 +1.0000 +0.0000 +27.0000 |
+0.0000 +0.0000 +1.0000 +25.0000 |
You have x**4 = 16, y**3 = 27, z**2 = 25 |
These give x = 2, y = 3, z = 5 |
Press return to continue. |
Systèmes sensoriels/Oiseaux |
Mathc complexes/a189 |
Application |
Installer et compiler ces fichiers dans votre répertoire de travail. |
/* Save as : c00a.c */ |
int main(void) |
double a[RA*(CA*C2)] = { 1,2, 3,4, 5,6, |
5,4, 1,3, 6,8, |
7,2, 5,1, 1,1}; |
double b0[RA*(Cb*C2)] ={ 1,4, |
2,5, |
3,6}; |
double **A = ca_A_mZ(a, i_mZ(RA,CA)); |
double **b = ca_A_mZ(b0,i_mZ(RA,Cb)); |
double **X = i_mZ(RA,Cb); |
double **T = i_mZ(RA,Cb); |
double **Ab = i_Abr_Ac_bc_mZ(RA,CA,Cb); |
c_A_b_Ab_mZ(A,b,Ab); |
clrscrn(); |
printf(" We want to find X such as, \n\n"); |
printf(" AX = b \n\n"); |
printf(" We can use the function, \n"); |
printf(" gaussjordan : gj_mZ(Ab); \n\n"); |
printf(" To verify the result you can \n"); |
printf(" multiply the matrix A by X. \n"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.