nilis24 / physics.h

A header file for c/c++ of the laws of physics

Home Page:https://discord.gg/AHAqK569Hq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



physics.h

A c/c++ header file of the laws of physics



Table of Contents



Gravitation

The universal force of attraction acting between all matter.


  • Universal Gravitation Law

UniversalGravitationLaw ( mass 1, mass 2, radius)


  • Accelaration Due to Gravity

AccelarationDuetoGravity( mass , radius, G)


  • Gravitational Potential Point Charge

GravitationalPotentialPointCharge(mass, radius)


  • Gravitational Potential Circular Ring

GravitationalPotentialCircularRing(mass, radius, x)


  • Gravitational Potential Circular Disc

GravitationalPotentialCircularDisc(mass, radius, x, xx)




Dynamics

The study of forces and their effects on motion.



Electricity

The set of physical phenomena associated with the presence and motion of matter that has a property of electric charge.



Energies

The capacity for doing work.



Kinematics

The study of motion of a system of bodies without directly considering the forces or potential fields affecting the motion.



Optics

The branch of physics that studies the behaviour and properties of light.



Constants

Constant NAME Value
G Newtonian constant of gravitation 6.67430(15)×10−11 m3.kg−1⋅s−2
c speed of light in vacuum 299792458 m⋅s−1
h Planck constant 6.62607015×10−34 J⋅Hz−1



Thanks to all contributors!




A Hacktoberfest 2022 Repo

About

A header file for c/c++ of the laws of physics

https://discord.gg/AHAqK569Hq

License:GNU General Public License v3.0


Languages

Language:C 93.0%Language:C++ 7.0%