-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
396 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ backup/ | |
*.o | ||
.depend | ||
filter_test | ||
polynom_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
#ifndef DUMPER_H | ||
#define DUMPER_H | ||
|
||
#include "polynom.h" | ||
|
||
void print_polynom(const double *p, const int np, const char v); | ||
void print_polynom_nd(const double *num, const int nnum, const double *den, const int nden, const char v, const char *title); | ||
void print_polynom_c(const complex *p, const int np, const char v); | ||
void print_polynom_nd(const double *num, const int nnum, const double *den, const int nden, | ||
const char v, const char *title); | ||
void print_polynom_nd_c(const complex *num, const int nnum, const complex *den, const int nden, | ||
const char v, const char *title); | ||
void print_zerolist(const double *z, const int nz, const char v); | ||
void print_zerolist_c(const complex *z, const int nz, const char v); | ||
void print_polynom_zp(const double *zero, const int nzero, const double *pole, const int npole, | ||
const double k, const char v, const char *title); | ||
void print_polynom_zp_c(const complex *zero, const int nzero, const complex *pole, const int npole, | ||
const complex k, const char v, const char *title); | ||
|
||
#endif // DUMPER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
https://reference.wolfram.com/language/guide/PolynomialAlgebra.html | ||
https://reference.wolfram.com/language/guide/PolynomialFactoring.html | ||
http://www.mathsisfun.com/algebra/partial-fractions.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
SRC=polynom_test.c polynom.c dumper.c | ||
OBJ=$(SRC:.c=.o) | ||
EXE=polynom_test | ||
|
||
CC=gcc | ||
CFLAGS=-Wall -O3 -std=c99 | ||
#LDFLAGS=-static-libgcc -static-libstdc++ -static | ||
LDFLAGS=-lm | ||
RM=rm | ||
|
||
all: $(EXE) | ||
|
||
%.o: %.c | ||
$(CC) $(CFLAGS) -o $@ -c $< | ||
|
||
$(EXE): $(OBJ) | ||
$(CC) $(OBJ) $(LDFLAGS) -o $@ | ||
|
||
clean: | ||
$(RM) $(OBJ) $(EXE) | ||
|
||
depend: $(SRCS) | ||
rm -f ./.depend | ||
$(CC) $(CFLAGS) -MM $(SRC) >> ./.depend | ||
|
||
-include .depend | ||
|
||
.PHONY: all clean |
Oops, something went wrong.