Fractals/mandelbrot-symbolics
< FractalsInstall
Dependencies
#include <stdbool.h>
#include <stdlib.h>
#include <gmp.h>
#include <pari/pari.h>
gcc -shared -ggdb -std=c99 -Wall -Wextra -pedantic -fPIC -O3 -pipe -ggdb -MMD -I../include -c -lpari -lmpc -lmpfr -lgmp -lm
clone
git clone http://code.mathr.co.uk/mandelbrot-symbolics.git
next
To install library to local prefix ~/opt/lib ~/opt/bin and so on:
make -C mandelbrot-symbolics/c/lib prefix=${HOME}/opt install
make -C mandelbrot-symbolics/c/bin prefix=${HOME}/opt install
then to run do:
export LD_LIBRARY_PATH=${HOME}/opt/lib
check :
echo $LD_LIBRARY_PATH
result :
/home/a/opt/lib
or
export PATH=${HOME}/opt/bin:${PATH}
check :
echo $PATH
then the programs can be run like
m-binangle-from-rational 1/2
no manual path specification necessary
To set it permanently change file .profile[1]
How to use
binaries
m-binangle-from-rational
from console :
./m-binangle-from-rational 1/2
result
.1(0)
./m-binangle-from-rational 7/96 .00010(01)
m-binangle-to-rational
from console
./m-binangle-to-rational ".0(0011)"
result :
1/10
Note that the input format isn't checked, so bad input can give bad output !
www
Code
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.