Introduction
Introduction Statistics Contact Development Disclaimer Help
tgrain.c: change type of exponent in pow(3) calls - granular - granular dynamic…
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
commit cb74224caf4111e964b0504df8e0ca6f7f6b5b2e
parent a501b9c908adc5dbd1ca45be5f20bed5c8d04e4c
Author: Anders Damsgaard <[email protected]>
Date: Thu, 18 Mar 2021 11:31:10 +0100
grain.c: change type of exponent in pow(3) calls
Diffstat:
M grain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/grain.c b/grain.c
t@@ -230,7 +230,7 @@ grain_check_values(const struct grain *g)
double
grain_volume(const struct grain *g)
{
- return 4.0 / 3.0 * PI * pow(g->radius, 3);
+ return 4.0 / 3.0 * PI * pow(g->radius, 3.0);
}
double
t@@ -242,7 +242,7 @@ grain_mass(const struct grain *g)
double
grain_moment_of_inertia(const struct grain *g)
{
- return 2.0 / 5.0 * grain_mass(g) * pow(g->radius, 2);
+ return 2.0 / 5.0 * grain_mass(g) * pow(g->radius, 2.0);
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.