Searched refs:vf2 (Results 1 – 5 of 5) sorted by relevance
/zscilib-3.4.0/tests/src/ |
D | phy_mom_tests.c | 65 zsl_real_t vf2; in ZTEST() local 67 rc = zsl_phy_mom_elas(13.1, 15.6, 9.6, 11.1, -4.3, &vf2); in ZTEST() 69 zassert_true(val_is_equal(vf2, 2.7810810811, 1E-6), NULL); in ZTEST() 72 rc = zsl_phy_mom_elas(-13.1, 15.6, 9.6, 11.1, -4.3, &vf2); in ZTEST() 75 zassert_true(vf2 != vf2, NULL); in ZTEST() 78 rc = zsl_phy_mom_elas(13.1, 15.6, 9.6, 0.0, -4.3, &vf2); in ZTEST() 81 zassert_true(vf2 != vf2, NULL); in ZTEST() 84 rc = zsl_phy_mom_elas(13.1, 15.6, 9.6, -11.1, -4.3, &vf2); in ZTEST() 87 zassert_true(vf2 != vf2, NULL); in ZTEST()
|
/zscilib-3.4.0/samples/physics/momentum/src/ |
D | main.c | 68 zsl_real_t vf2; in momentum_demo() local 70 zsl_phy_mom_elas(m1, 3.4, -3.1, m2, -5.1, &vf2); in momentum_demo() 72 printf("The final velocity of the second ball is %f m/s.\n\n", vf2); in momentum_demo()
|
/zscilib-3.4.0/src/physics/ |
D | momentum.c | 53 zsl_real_t vi2, zsl_real_t *vf2) in zsl_phy_mom_elas() argument 56 *vf2 = NAN; in zsl_phy_mom_elas() 64 *vf2 = (m1 * (vi1 - vf1) + m2 * vi2) / m2; in zsl_phy_mom_elas()
|
D | kinematics.c | 90 zsl_real_t vf2 = vi * vi + 2 * accel * dist; in zsl_phy_kin_vel2() local 92 if (vf2 < 0) { in zsl_phy_kin_vel2() 97 *vf = ZSL_SQRT(vf2); in zsl_phy_kin_vel2()
|
/zscilib-3.4.0/include/zsl/physics/ |
D | momentum.h | 89 zsl_real_t m2, zsl_real_t vi2, zsl_real_t *vf2);
|