Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. //x
  2. J_sec[0][0] = fx1;
  3. J_sec[1][0] = fx2;
  4. J_sec[2][0] = fx3;
  5.  
  6. for (j = 0; j < 3; j++) {
  7. for (n = 1; n < 3; n++) {
  8. J_sec[j][n] = J[j][n];
  9. printf("k = %d, n = %d\nJ_sec[%d][%d] = J[%d][%d]\n", k,n,j,n,j,n);
  10. }
  11. }
  12. w_x = wyzn(J_sec);
  13.  
  14. //y
  15.  
  16. J_sec[0][1] = fx1;
  17. J_sec[1][1] = fx2;
  18. J_sec[2][1] = fx3;
  19.  
  20. for (j = 0; j < 3; j++) {
  21. for (n = 0; n < 3; n++) {
  22. if (n != 1) {
  23. J_sec[j][n] = J[j][n];
  24. printf("k = %d, n = %d\nJ_sec[%d][%d] = J[%d][%d]\n", k,n,j,n,j,n);
  25. }
  26. }
  27. }
  28. w_y = wyzn(J_sec);
  29.  
  30. //z
  31. J_sec[0][2] = fx1;
  32. J_sec[1][2] = fx2;
  33. J_sec[2][2] = fx3;
  34.  
  35. for (j = 0; j < 3; j++) {
  36. for (n = 0; n < 2; n++) {
  37. if (n != 1) {
  38. J_sec[j][n] = J[j][n];
  39. printf("k = %d, n = %d\nJ_sec[%d][%d] = J[%d][%d]\n", k,n,j,n,j,n);
  40. }
  41. }
  42. }
  43. w_z = wyzn(J_sec);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement