Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed units
  • Loading branch information
ryt16011 committed Apr 2, 2020
1 parent cdb7960 commit 6267ff2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CompMech03-IVPs_project.ipynb
Expand Up @@ -600,7 +600,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": 50,
"metadata": {},
"outputs": [
{
Expand All @@ -609,35 +609,35 @@
"text": [
"number of brackets: 1\n",
"\n",
"Lower bound on Mass = 0.05 kg\n",
"Upper bound on Mass = 0.09 kg\n"
"Lower bound on Mass = 0.05 kg/s\n",
"Upper bound on Mass = 0.09 kg/s\n"
]
}
],
"source": [
"#Problem 3a\n",
"rate_interval = incsearch(f_m, 0.05, 0.4, ns = 10)\n",
"print('Lower bound on Mass = {:.2f} kg'.format(*rate_interval[1,:]))\n",
"print('Upper bound on Mass = {:.2f} kg'.format(*rate_interval[0,:]))"
"print('Lower bound on Mass = {:.2f} kg/s'.format(*rate_interval[1,:]))\n",
"print('Upper bound on Mass = {:.2f} kg/s'.format(*rate_interval[0,:]))"
]
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": 51,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The root of function fm is: 0.07890\n"
"The root of function fm is: 0.07890 kg/s\n"
]
}
],
"source": [
"#Problem 3b\n",
"root = mod_secant(f_m, 0.00001, 0.1)\n",
"print('The root of function fm is: {:.5f}'.format(root[0]))"
"print('The root of function fm is: {:.5f} kg/s'.format(root[0]))"
]
},
{
Expand Down

0 comments on commit 6267ff2

Please sign in to comment.