/    Sign up×
Community /Pin to ProfileBookmark

CAN someone turn this into Jave????

Can someone help turn this into to java for my web site?

0.0336 * W * (mph upper ^2) – 0.0336 * W * (mph lower ^2) = torque

torque / acc time/550 = horsepower acc

torque / dec time/550 = horsepower dec

horsepower acc + horsepower dec = horsepower

user definable inputs are:

W = weight
Mph upper
Mph lower
Acc time
Dec time

Calculation to determine vehicle horsepower
Eg:
Car weight + driver = 1800 pounds
Mph lower = 50
Mph upper = 70
Acc time (time to get from 50 to 70) 5 seconds
Dec time (time to get from 70 to 50 in neutral) = 10 seconds

0.0336* 1800 * (70 ^2) – 0.0336* 1800 * (50 ^2) =

60.48 * 4900 – 60.48 * 2500 =
296352 – 151200 = 145152

torque / acc time/550 = horsepower acc
145152 / 5 / 550 = 52.78

torque / dec time/550 = horsepower dec

145152 / 10 / 550 26.39

52.78 + 26.39 = 79.17 final horsepower

The bits that need to be seen are the user definable inputs and the final horsepower.
All else can take place behind the scenes.

Any help greatly appreciated

Cheers
Josh

to post a comment
JavaScript

1 Comments(s)

×

Success!

Help @Josh_b spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...