Math in Java. What a struggle. Help. Please. Fast.

I am solving complicated mathproblems in an application that solves highly sophisticated geometrical tasks. Now i am struggeling, because I have to solve the following term to get the two x-values for zero. Is there some kind of util I can use to solve this?
0=x^2+-2*x*a+a^2+((R^2-r^2-c^2-d^2+a^2+b^2+-x*(-2*c+2*a))/(-2*d+2*b))^2+-2*b*((R^2-r^2-c^2-d^2+a^2+b^2+-x*(-2*c+2*a))/(-2*d+2*b))+b^2
0=x^2+-2*x*a+a^2+((R^2-r^2-c^2-d^2+a^2+b^2+-x*(-2*c+2*a))/(-2*d+2*b))^2+-2*b*((R^2-r^2-c^2-d^2+a^2+b^2+-x*(-2*c+2*a))/(-2*d+2*b))+b^2
4 Replies
JavaBot
JavaBot3d ago
This post has been reserved for your question.
Hey @Roasty! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant 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. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
circle
circle3d ago
You can definitely use package java.util.Math it provides many math methods, for example if you want to do power of numbers, you can use Math.pow(a, b) where b is the power
JavaBot
JavaBot23h ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Daniel Santos
Daniel Santos15h ago
in representing decimal values use BigDecimal. primitive types cause precision and rounding problemsd
Want results from more Discord servers?
Add your server