Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication2.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
- #include "pch.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- #include <iosfwd>
- #define N_MAX 50
- #define N_PRINT 5
- #define TOLX 1.0e-011
- #define TOLF 1.0e-011
- double jakobian(double x, double y, double z) {
- return -4 * x * z - 8 * x * y * z;
- }
- double f1(double x, double y, double z) {
- return x * x + y * y + z * z - 2;
- }
- double f2(double x, double y) {
- return x * x + y * y - 1;
- }
- double f3(double x, double y) {
- return x * x - y;
- }
- int main()
- {
- std::cout.setf(std::ios::scientific);
- std::cout.precision(16);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement