https://github.com/janverschelde/PHCpack
Raw File
Tip revision: d5b5d00937d5cae0544be6e9a08b37cdd95f7986 authored by Jan Verschelde on 29 March 2019, 23:57:37 UTC
updated installation, added an example of py2c_corecount, and an example of setting the gamma parameter for the initialization of the step-by-step path tracker
Tip revision: d5b5d00
ts_tree.c
#include <stdio.h>
#include "tree.h"

int main()
{
  int m, p, q, sum;

  printf("Give p, dimension of the solution planes :");
  scanf("%d", &p);
  printf("Give m, the co-dimension so that n = m+p :");
  scanf("%d", &m);
  printf("Give q, the degree of the maps :");
  scanf("%d", &q);

  if(q==0)
    sum = Build_Bottom_Tree(m,p);
  else
    sum = Q_Build_Bottom_Tree(m,p,q); 
  printf("The number of roots : %d\n", sum);

  return 0;
}
back to top