Home
last modified time | relevance | path

Searched refs:xi (Results 1 – 6 of 6) sorted by relevance

/zscilib-3.4.0/tests/src/
Dphy_kin_tests.c33 zsl_real_t xi; in ZTEST() local
35 rc = zsl_phy_kin_init_pos(15.0, 5.0, -2.0, 70.0, &xi); in ZTEST()
37 zassert_true(val_is_equal(xi, 20.0, 1E-6), NULL); in ZTEST()
40 rc = zsl_phy_kin_init_pos(15.0, -1.0, -2.0, 70.0, &xi); in ZTEST()
43 zassert_true(xi != xi, NULL); in ZTEST()
49 zsl_real_t xi; in ZTEST() local
51 rc = zsl_phy_kin_init_pos2(10.0, 12.0, 2.0, 20.0, &xi); in ZTEST()
53 zassert_true(val_is_equal(xi, 9.0, 1E-6), NULL); in ZTEST()
56 rc = zsl_phy_kin_init_pos2(10.0, 12.0, 0.0, 20.0, &xi); in ZTEST()
59 zassert_true(xi != xi, NULL); in ZTEST()
/zscilib-3.4.0/samples/physics/projectiles/src/
Dmain.c23 zsl_real_t xi = 2.2; /* Initial horizontal position. */ in projectiles_demo() local
28 printf("the origin x coordinate to be %f meters behind the\n", xi); in projectiles_demo()
71 zsl_phy_proj_hor_motion(vih, 2.0, xi, &xf); in projectiles_demo()
92 zsl_phy_proj_trajectory(vih, viv, xi, yi, 15.4, &yf); in projectiles_demo()
100 zsl_phy_proj_range(vih, viv, xi, yi, &dist); in projectiles_demo()
/zscilib-3.4.0/src/physics/
Dprojectiles.c99 zsl_phy_proj_hor_motion(zsl_real_t vih, zsl_real_t t, zsl_real_t xi, in zsl_phy_proj_hor_motion() argument
102 *xf = xi + vih * t; in zsl_phy_proj_hor_motion()
113 zsl_phy_proj_trajectory(zsl_real_t vih, zsl_real_t viv, zsl_real_t xi, in zsl_phy_proj_trajectory() argument
116 zsl_real_t t = (xf - xi) / vih; in zsl_phy_proj_trajectory()
150 zsl_phy_proj_range(zsl_real_t vih, zsl_real_t viv, zsl_real_t xi, in zsl_phy_proj_range() argument
157 zsl_phy_proj_hor_motion(vih, t, xi, &xf); in zsl_phy_proj_range()
159 *dist = xf - xi; in zsl_phy_proj_range()
Dkinematics.c28 zsl_real_t *xi) in zsl_phy_kin_init_pos() argument
31 *xi = NAN; in zsl_phy_kin_init_pos()
39 *xi = xf - dist; in zsl_phy_kin_init_pos()
46 zsl_real_t *xi) in zsl_phy_kin_init_pos2() argument
49 *xi = NAN; in zsl_phy_kin_init_pos2()
53 *xi = xf - ((vf * vf - vi * vi) / (2.0 * a)); in zsl_phy_kin_init_pos2()
/zscilib-3.4.0/include/zsl/physics/
Dprojectiles.h153 int zsl_phy_proj_hor_motion(zsl_real_t vih, zsl_real_t t, zsl_real_t xi,
172 int zsl_phy_proj_trajectory(zsl_real_t vih, zsl_real_t viv, zsl_real_t xi,
215 int zsl_phy_proj_range(zsl_real_t vih, zsl_real_t viv, zsl_real_t xi,
Dkinematics.h61 zsl_real_t xf, zsl_real_t *xi);
78 zsl_real_t xf, zsl_real_t *xi);