Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An example for calculating p-adic roots of polynomials in ZZ[x]. #1858

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dev/check_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,23 @@ then
elif test "$1" = "padic";
then
echo "padic....SKIPPED"
elif test "$1" = "padic_roots"
then
echo -n "padic_roots...."
res=$($2/padic_roots 11)
if test "$?" != "0";
then
echo "FAIL"
exit 1
fi
echo "$res" | perl -0ne 'if (/8\*11\^62\ \+\ 4\*11\^63 \(1\)/g) { $found=1; last } END { exit !$found }'
if test "$?" != "0";
then
echo "FAIL"
exit 2
fi
echo "PASS"
exit 0
elif test "$1" = "partitions";
then
echo "partitions....SKIPPED"
Expand Down
Loading