| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168703Image: ubuntu2004
sqrt(-(pzb + pzl)^2 - (pyb + pyl)^2 - (pxb + pxl)^2 + (Eb + El)^2)
sqrt(-(pzb + pzl)^2 - (pyb + pyl)^2 - (pxb + pxl)^2 + (El + sqrt(mb^2 + pxb^2 + pyb^2 + pzb^2))^2)
sqrt((El + sqrt(ptb^2*sin(phib)^2 + ptb^2*cos(phib)^2 + ptb^2*sinh(etab)^2 + mb^2))^2 - (ptb*sinh(etab) + pzl)^2 - (ptb*cos(phib) + pxl)^2 - (ptb*sin(phib) + pyl)^2)
-((ptb*sinh(etab) + pzl)*sinh(etab) + (ptb*cos(phib) + pxl)*cos(phib) + (ptb*sin(phib) + pyl)*sin(phib) - (El + sqrt(ptb^2*sin(phib)^2 + ptb^2*cos(phib)^2 + ptb^2*sinh(etab)^2 + mb^2))*(ptb*sin(phib)^2 + ptb*cos(phib)^2 + ptb*sinh(etab)^2)/sqrt(ptb^2*sin(phib)^2 + ptb^2*cos(phib)^2 + ptb^2*sinh(etab)^2 + mb^2))/sqrt((El + sqrt(ptb^2*sin(phib)^2 + ptb^2*cos(phib)^2 + ptb^2*sinh(etab)^2 + mb^2))^2 - (ptb*sinh(etab) + pzl)^2 - (ptb*cos(phib) + pxl)^2 - (ptb*sin(phib) + pyl)^2)
[('test.c', '/******************************************************************************\n * Code generated with sympy 0.7.1 *\n * *\n * See http://www.sympy.org/ for more information. *\n * *\n * This file is part of \'project\' *\n ******************************************************************************/\n#include "test.h"\n#include <math.h>\n\ndouble dphi(double El, double etab, double mb, double phib, double ptb, double pxl, double pyl, double pzl) {\n\n return (-ptb*(ptb*sin(phib) + pyl)*cos(phib) + ptb*(ptb*cos(phib) + pxl)*sin(phib))/sqrt(pow(El + sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)), 2) - pow(ptb*sin(phib) + pyl, 2) - pow(ptb*cos(phib) + pxl, 2) - pow(ptb*sinh(etab) + pzl, 2));\n\n}\n'), ('test.h', "/******************************************************************************\n * Code generated with sympy 0.7.1 *\n * *\n * See http://www.sympy.org/ for more information. *\n * *\n * This file is part of 'project' *\n ******************************************************************************/\n\n\n#ifndef PROJECT__TEST__H\n#define PROJECT__TEST__H\n\ndouble dphi(double El, double etab, double mb, double phib, double ptb, double pxl, double pyl, double pzl);\n\n#endif\n\n")]
[('test.c', '/******************************************************************************\n * Code generated with sympy 0.7.1 *\n * *\n * See http://www.sympy.org/ for more information. *\n * *\n * This file is part of \'project\' *\n ******************************************************************************/\n#include "test.h"\n#include <math.h>\n\ndouble deta(double El, double etab, double mb, double phib, double ptb, double pxl, double pyl, double pzl) {\n\n return (pow(ptb, 2)*(El + sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)))*sinh(etab)*cosh(etab)/sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)) - ptb*(ptb*sinh(etab) + pzl)*cosh(etab))/sqrt(pow(El + sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)), 2) - pow(ptb*sin(phib) + pyl, 2) - pow(ptb*cos(phib) + pxl, 2) - pow(ptb*sinh(etab) + pzl, 2));\n\n}\n'), ('test.h', "/******************************************************************************\n * Code generated with sympy 0.7.1 *\n * *\n * See http://www.sympy.org/ for more information. *\n * *\n * This file is part of 'project' *\n ******************************************************************************/\n\n\n#ifndef PROJECT__TEST__H\n#define PROJECT__TEST__H\n\ndouble deta(double El, double etab, double mb, double phib, double ptb, double pxl, double pyl, double pzl);\n\n#endif\n\n")]
[('test.c', '/******************************************************************************\n * Code generated with sympy 0.7.1 *\n * *\n * See http://www.sympy.org/ for more information. *\n * *\n * This file is part of \'project\' *\n ******************************************************************************/\n#include "test.h"\n#include <math.h>\n\ndouble dpt(double El, double etab, double mb, double phib, double ptb, double pxl, double pyl, double pzl) {\n\n return -(-(El + sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)))*(ptb*pow(sin(phib), 2) + ptb*pow(cos(phib), 2) + ptb*pow(sinh(etab), 2))/sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)) + (ptb*sin(phib) + pyl)*sin(phib) + (ptb*cos(phib) + pxl)*cos(phib) + (ptb*sinh(etab) + pzl)*sinh(etab))/sqrt(pow(El + sqrt(pow(mb, 2) + pow(ptb, 2)*pow(sin(phib), 2) + pow(ptb, 2)*pow(cos(phib), 2) + pow(ptb, 2)*pow(sinh(etab), 2)), 2) - pow(ptb*sin(phib) + pyl, 2) - pow(ptb*cos(phib) + pxl, 2) - pow(ptb*sinh(etab) + pzl, 2));\n\n}\n'), ('test.h', "/******************************************************************************\n * Code generated with sympy 0.7.1 *\n * *\n * See http://www.sympy.org/ for more information. *\n * *\n * This file is part of 'project' *\n ******************************************************************************/\n\n\n#ifndef PROJECT__TEST__H\n#define PROJECT__TEST__H\n\ndouble dpt(double El, double etab, double mb, double phib, double ptb, double pxl, double pyl, double pzl);\n\n#endif\n\n")]
0.720573472840344
96.2044411395947