projects
/
assignment-template.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e700a1
)
scatter: fix stupid --vx0-energy minus sign
author
W. Trevor King
<wking@tremily.us>
Fri, 22 Feb 2013 17:49:45 +0000
(12:49 -0500)
committer
W. Trevor King
<wking@tremily.us>
Fri, 22 Feb 2013 17:49:45 +0000
(12:49 -0500)
scatter.c
patch
|
blob
|
history
diff --git
a/scatter.c
b/scatter.c
index ed164aea7c5852894a486dfa5520d575c42398ca..aa50c876870ab0704f49e30a9262e7e3f50b16ba 100644
(file)
--- a/
scatter.c
+++ b/
scatter.c
@@
-343,7
+343,7
@@
void parse_args(int argc, char **argv, state_t *state, system_t *system,
state->x[2] = safe_strtod(optarg, "vx0");
break;
case 'e':
- state->x[2] =
-
sqrt(2*safe_strtod(optarg, "vx0-energy")/system->m);
+ state->x[2] = sqrt(2*safe_strtod(optarg, "vx0-energy")/system->m);
break;
case 'Y':
state->x[3] = safe_strtod(optarg, "vy0");