fix polynomial to accept any exponents
This commit is contained in:
4
Makefile
4
Makefile
@@ -102,6 +102,10 @@ run: $(NAME)
|
||||
./$(NAME) -d "3 * x^2 + 5 * x^1 - 2 * x^0 = 5 * x^1"
|
||||
@echo $(BLUE)"\n -> run \n"$(RESET)
|
||||
./$(NAME) -d "3*x^2 + 2*x = 0"
|
||||
@echo $(BLUE)"\n -> run \n"$(RESET)
|
||||
./$(NAME) -d "3*x^2 + 2*x -7x^3 = x^3"
|
||||
@echo $(BLUE)"\n -> run \n"$(RESET)
|
||||
./$(NAME) -d "3*x^2 + 2*x -7x^4 = x^4"
|
||||
|
||||
clean:
|
||||
$(RM_OBJS)
|
||||
|
||||
Reference in New Issue
Block a user