#Convert the following expression in equivalent java expression
11 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @robust adder! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
do you understand the expression itself?
Ive gotten something like this done
double x = 1;
double y = 1;
double z = 1;
double w = 1;
double result = (5 * (3 * Math.pow(x, 2) + 5 * x + 2)) / ((7 * w) - (1 / z)) - (z / 4) * (3 + x) / 7;
y = result;
but not really sure if its correct
i feel like you're not understanding the expression itself
(also i don't think result is supposed to be a variable, just use y there)
the full thing is one massive fraction right now, try separating out sections so you can view it more easily
the more linear it is, the more direct the java version will be