Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* synthetic division */
- if (bu_strcmp(argv[1],"sd") == 0) {
- return test_synthetic(&poly_eqn1, &poly_eqn2, &poly_exact_ans, &poly_ex_ans);
- /* basic operations(add/sub) */
- } else
- if (bu_strcmp(argv[1],"bo") == 0) {
- return test_add_sub(&poly_eqn1, &poly_eqn2, &poly_exact_ans, &poly_ex_ans);
- /* multiplication */
- } else
- if (bu_strcmp(argv[1],"mu") == 0) {
- return test_mult(&poly_eqn1, &poly_eqn2, &poly_exact_ans);
- /* scale */
- } else
- if (bu_strcmp(argv[1],"sc") == 0) {
- return test_scale(&poly_eqn1, &poly_exact_ans);
- } else
- /* roots */
- if (bu_strcmp(argv[1],"rt") == 0) {
- counter = test_roots(&poly_eqn1, readroots);
- bu_free(readroots,"main Roots freed");
- return (int)counter;
- }
Advertisement
Add Comment
Please, Sign In to add comment