#include <SyFi.h>
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 7 of file line_ex3.cpp.
References SyFi::EQUAL_OR_DIE(), demos::simple::f, SyFi::initSyFi(), SyFi::Line::integrate(), and demos::crouzeixraviart::p0.
00007 { 00008 00009 initSyFi(3); 00010 00011 // example that check scaling 00012 00013 numeric h(1,100); // 1.0/100 00014 numeric a(1,2); // 1.0/2 00015 ex p0 = lst(a,a,a); 00016 ex p1 = lst(a+h,a,a); 00017 00018 Line line(p0,p1); 00019 00020 00021 ex f = 1; 00022 ex intf = line.integrate(f); 00023 cout <<"intf "<<intf<<endl; 00024 EQUAL_OR_DIE(intf, "1/100"); 00025 00026 return 0; 00027 00028 }