v0.14.0
Loading...
Searching...
No Matches
examplefast.cpp File Reference
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 3 of file examplefast.cpp.

4{
5 double x[3], y[3], n[3];
6
7 y[0] = 0;
8 y[1] = 1;
9 y[2] = 2;
10 x[0] = 2;
11 x[1] = 3;
12 x[2] = 4;
13 n[0] = 5;
14 n[1] = 6;
15 n[2] = 7;
16 for(int i = 1; i < 10000000; i++)
17 {
18 y[0] = (x[0] + n[0]);
19 y[1] = (x[1] + n[1]);
20 y[2] = (x[2] + n[2]);
21
22 x[0] = (y[0] - n[0]);
23 x[1] = (y[1] - n[1]);
24 x[2] = (y[2] - n[2]);
25
26 n[0] = n[0] + (y[0] - x[0]) - (y[0] - x[0]) + (y[0] - x[0])
27 - (y[0] - x[0]) + (y[0] - x[0]) - (y[0] - x[0]);
28 n[1] = n[1] + (y[1] - x[1]) - (y[1] - x[1]) + (y[1] - x[1])
29 - (y[1] - x[1]) + (y[1] - x[1]) - (y[1] - x[1]);
30 n[2] = n[2] + (y[2] - x[2]) - (y[2] - x[2]) + (y[2] - x[2])
31 - (y[2] - x[2]) + (y[2] - x[2]) - (y[2] - x[2]);
32 }
33 cout << y[0] << " " << y[1] << " " << y[2] << endl;
34}
FTensor::Index< 'i', SPACE_DIM > i
const double n
refractive index of diffusive medium