SHARE
TWEET

Untitled

a guest Mar 26th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ConsoleApplication2.cpp : This file contains the 'main' function. Program execution begins and ends there.
  2. //
  3.  
  4. #include "pch.h"
  5. #include <iostream>
  6. #include <string>
  7. #include <cmath>
  8. #include <iosfwd>
  9.  
  10. #define N_MAX 50
  11. #define N_PRINT 5
  12. #define TOLX 1.0e-011
  13. #define TOLF 1.0e-011
  14.  
  15. double jakobian(double x, double y, double z) {
  16.     return -4 * x * z - 8 * x * y * z;
  17. }
  18.  
  19. double f1(double x, double y, double z) {
  20.     return x * x + y * y + z * z - 2;
  21. }
  22.  
  23. double f2(double x, double y) {
  24.     return x * x + y * y - 1;
  25. }
  26.  
  27. double f3(double x, double y) {
  28.     return x * x - y;
  29. }
  30.  
  31. int main()
  32. {
  33.     std::cout.setf(std::ios::scientific);
  34.     std::cout.precision(16);
  35.     return 0;
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top