Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4829

Other programming languages • Re: Pari/GP CAS (Computer Algebra System)

$
0
0
I worked a lot on GP3D, and learned in the meantime how to output "same" vertex fast in 3D by translate and using copy that was rendered once. Since recently jscad.app has "smooth render" option that makes view so much nicer.
Adding parameters is so easy, and allows to see what I really wanted.
With disabling "mod" for colors from palette I was able to see the sloped same level (same color) planes I searched for.
This animated .gif was recorded with peek screenrecorder (under X11 and not Wayfire) of chromium browser on Raspberry Pi5, generated with "n=61 make tqf_3D.2" of current GP3D repo:
Image

P.S:
Just checked, and I am running Pi5 overclocked currently:

Code:

pi@raspberrypi5:~/GP3D $ freqmin=cur=3000000=maxpi@raspberrypi5:~/GP3D $ 
There are currently quite some demos in the repo, but README.md does not reflect that at present.
Makefile has these demo targets:

Code:

pi@raspberrypi5:~/GP3D $ grep : Makefile demo:demo2:demo3:sphere_embedding:tqf_3D.1:tqf_3D.2:tqf_3D.3:clean:pi@raspberrypi5:~/GP3D $ 
Created JSCAD file is always "gp.jscad", best viewed in "https://jscad.app".
"tqf*" demos require "n" environment variable to be set, and error out if not.

P.P.S:
"make demo2" demonstrates the spherical embedding (slower) vertices, great circle and straight edges, spherical triangle fill and vertex label features of GP3D:
demo2.gp.jpg

Only 18 lines of PARI/GP are needed for this demo:
demo2.gp.png

Statistics: Posted by HermannSW — Tue Feb 06, 2024 12:46 am



Viewing all articles
Browse latest Browse all 4829

Trending Articles