-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.h
More file actions
42 lines (30 loc) · 1.46 KB
/
list.h
File metadata and controls
42 lines (30 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef LIST_H
#define LIST_H
#include <stdio.h>
#include <assert.h>
struct Vector{
double x;
double y;
double z;
};
double function_vec(struct Vector coord);
double function(double x, double y, double z);
struct Vector sum_vec (struct Vector vec1, struct Vector vec2);
struct Vector minus(struct Vector vec);
struct Vector multiply_vec(struct Vector vec, double alpha);
struct Vector partial_derivative(struct Vector coord);
double decart_norm(struct Vector coord);
struct Vector gradient (struct Vector coord, int flag_direction);
struct Vector Newton_method (struct Vector point);
double derivative (struct Vector coord,struct Vector grad);
struct Vector crushing_step (struct Vector coord, int flag_direction);
struct Vector crushing_step_method (struct Vector coord,double epsilon, int flag_direction);
struct Vector bisection_method (struct Vector coord,double epsilon, int flag_direction);
struct Vector bisection (struct Vector coord, double epsilon, int flag_direction);
struct Vector bust (struct Vector coord, int flag_direction);
struct Vector bust_method (struct Vector coord,double epsilon, int flag_direction);
struct Vector golden_section (struct Vector coord,double epsilon, int flag_direction);
struct Vector golden_section_method (struct Vector coord,double epsilon, int flag_direction);
struct Vector tangent (struct Vector coord,double epsilon, int flag_direction);
struct Vector tangent_method (struct Vector coord,double epsilon, int flag_direction);
#endif