normal_vec.cpp
Go to the documentation of this file.00001 #include <SyFi.h>
00002 #include <fstream>
00003
00004 using namespace GiNaC;
00005 using namespace SyFi;
00006 using namespace std;
00007
00008
00009
00010 int main() {
00011 initSyFi(2);
00012 ReferenceTriangle t;
00013 for (int i=0; i< 3; i++) {
00014 cout <<" normal 2D"<<normal(t,i)<<endl;
00015 }
00016
00017 ReferenceTetrahedron t2;
00018 for (int i=0; i< 4; i++) {
00019 cout <<" normal 3D"<<normal(t2,i)<<endl;
00020 }
00021
00022
00023
00024 }
00025