Post number #1015909, ID: 88f461
|
x+y =0 when x and y or y is not equal to 0, so i need something that does not has values that is <0 for both x and y, which is usually achievable by |x| + |y| but i want to this strictly by math, avoiding abs() or ||,or rather, any other symbol that is no +-/ relying on mostly other variables... how do i do this or, "why is not doable" give me a convincing statement.
Post number #1015913, ID: 0eb223
|
You forgot to carry the 2.
Post number #1015914, ID: 88f461
|
>>1015913 what>>>>?????????:
Post number #1015924, ID: 2607d5
|
x = -y This isn't hard
If the problem is actually |x| + |y| = 0 and neither x or y can be 0 then I think that's impossible, but I'm not a mathematician.
Post number #1015979, ID: b4a9fb
|
>>1015924 no i need to have x+y in my code, so the A+B i have is divided by this amount, but then the problem occurs when x+y is =0 which makes it divided to infinite but at the same time i need it to have 0 when x and y is 0, soit fits |x|+|y| but i want to, wirte it in simpler mathemathics or whatever.
or just be convinced somehow that it doesnt have basis in +-/ idk
Post number #1016148, ID: 2607d5
|
If it's in code you can just add a little `if ((x + y) == 0) return 0` or something. What's the thing you're trying to do?
Total number of posts: 6,
last modified on:
Tue Jan 1 00:00:00 1718263856
| x+y =0 when x and y or y is not equal to 0, so i need something that does not has values that is <0 for both x and y, which is usually achievable by |x| + |y|
but i want to this strictly by math, avoiding abs() or ||,or rather, any other symbol that is no +-/
relying on mostly other variables... how do i do this or, "why is not doable"
give me a convincing statement.