https://github.com/janverschelde/PHCpack
Tip revision: 3976bd329afc91696626411d492a04b8015703f0 authored by Jan Verschelde on 13 March 2018, 22:25:33 UTC
extended the documentation of solve() in the solver module to refer to the solve in the factor module for a numerical irreducible decomposition
extended the documentation of solve() in the solver module to refer to the solve in the factor module for a numerical irreducible decomposition
Tip revision: 3976bd3
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;
}