-
-
Save perlpilot/3777ffd262f82be0ba9e to your computer and use it in GitHub Desktop.
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
➤ ./symbolic --x='Vx*t+Px' --y='Vy*t+Py' --z='Vz*t+Pz' 't²=x²+y²+z²' t | |
t=(-(2*Vx*Px+2*Vy*Py+2*Vz*Pz)±√((2*Vx*Px+2*Vy*Py+2*Vz*Pz)²-4*(Vx²+Vy²+Vz²+-1)*(Px²+Py²+Pz²)))/(2*(Vx²+Vy²+Vz²+-1)) | |
real 0m15.253s | |
user 0m15.050s | |
sys 0m0.189s | |
➤ ./symbolic "2²" | |
4 | |
real 0m4.649s | |
user 0m4.513s | |
sys 0m0.129s | |
➤ perl6 --version | |
This is perl6 version 2014.10-141-g10aa8bf built on MoarVM version 2014.11-1-g33970c6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment