main.cpp 680 B

12345678910111213141516171819202122232425262728293031
  1. #include "coefficients.hpp"
  2. #include "polygon.hpp"
  3. #include <quadmath.h>
  4. int main(){
  5. try{
  6. Polygon P("u200l200d200r200");
  7. printf ("%Qe\n", P.get_fp());
  8. // cout<<P.get_fp()<<endl;
  9. /*cout<<"Size : "<<P.size()<<endl;
  10. cout<<"Graph size : "<<P.graph_size()<<endl;
  11. for(size_t i=0;i<P.graph_size();++i){
  12. for(size_t j=0;j<P.graph_size();++j){
  13. cout<<P.get_coeff_B(i,j)<<' ';
  14. }
  15. cout<<endl;
  16. }
  17. cout<<endl;
  18. for(size_t i=0;i<P.graph_size();++i){
  19. for(size_t j=0;j<P.graph_size();++j){
  20. cout<<P.get_coeff_C(i,j)<<' ';
  21. }
  22. cout<<endl;
  23. }*/
  24. }
  25. catch(const Error& error){
  26. cerr<<error.msg<<endl;
  27. }
  28. }