Zephyr Scientific Library (zscilib)
dynamics.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2020 Kevin Townsend (KTOWN)
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
22 #ifndef ZEPHYR_INCLUDE_ZSL_DYNAMICS_H_
23 #define ZEPHYR_INCLUDE_ZSL_DYNAMICS_H_
24 
25 #include <zsl/zsl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
43 
56 
69 
81 
94 
108 
123  zsl_real_t *f2);
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif /* ZEPHYR_INCLUDE_ZSL_DYNAMICS_H_ */
130  /* End of dynamics group */
zsl_phy_dyn_pendul_period
int zsl_phy_dyn_pendul_period(zsl_real_t l, zsl_real_t *t)
Calculates an approximation of the period of a simple pendulum with small oscilations,...
zsl_phy_dyn_tension
int zsl_phy_dyn_tension(zsl_real_t m, zsl_real_t a, zsl_real_t *t)
Calculates the tension in newtons of a massless tensed rope with a moving object.
zsl_phy_dyn_newton
int zsl_phy_dyn_newton(zsl_real_t m, zsl_real_t accel, zsl_real_t *f)
Calculates the force in newtons that experiences a body based on its mass (m) and acceleration (accel...
zsl_phy_dyn_normal
int zsl_phy_dyn_normal(zsl_real_t m, zsl_real_t theta, zsl_real_t *n)
Calculates the normal force in newtons exerted by plane inclined 'theta' radians on a body of mass 'm...
zsl_phy_dyn_lever
int zsl_phy_dyn_lever(zsl_real_t d1, zsl_real_t f1, zsl_real_t d2, zsl_real_t *f2)
Calculates the force required to balance a lever, given the force applied to the other end of the lev...
zsl.h
API header file for zscilib.
zsl_phy_dyn_pendul_max_speed
int zsl_phy_dyn_pendul_max_speed(zsl_real_t l, zsl_real_t oi, zsl_real_t *vmax)
Calculates the maximum speed in meters per second of a simple pendulum based on its length (l) and in...
zsl_phy_dyn_fric
int zsl_phy_dyn_fric(zsl_real_t n, zsl_real_t mu, zsl_real_t *f)
Calculates the friction force experienced by a body moving in a surface with a friction coefficient '...
zsl_real_t
double zsl_real_t
Definition: zsl.h:51