#Quick question
1 messages ยท Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
To clarify your question: if by "make a negative Math Square" you mean obtaining the negative of a squared number in Java, you can simply square the number using Math.pow() or the * operator and then negate the result. For example:
double result = -Math.pow(x, 2);
or
int result = -(x * x);
This gives you the negative of the square of x. Remember, the square of any real number is non-negative, so negating it produces a negative or zero value depending on the input.
Useful links:
As if we have:
int num = Math.sqrt(2)
to return a positive number, then how we return it as a negative
So if we say if the number is 4, and we get 2 from the square of it, then how we can get -2
As i tried all ways, but i can't remember how to do it
multiply with -1
-1 * Math.sqrt(2)
Yeah u smart.
I tried all ways
And didn't though of that
Thanks man!
Btw king, i added u on discord <3
Yeah i tried, as i knew it works
But js forgot completly the form on how to make it negative
Btw you remember me? ;D