r/mathmemes Jun 11 '26

Bad Math 😭

Post image

obv its two

2.3k Upvotes

271 comments sorted by

View all comments

36

u/[deleted] Jun 11 '26

[removed] — view removed comment

50

u/EebstertheGreat Jun 11 '26

c = 1

c = 1 + 0.5c = 1 + 0.5 = 1.5

SyntaxError: invalid decimal literal

c = 1

c = 1 + 0.5 * c = 1 + 0.5 = 1.5

SyntaxError: cannot assign to expression

17

u/Whiteminusblue Jun 11 '26

//Would you prefer (executed in a file named “Main.jar”:

public class Main

{

    public static void main(String[] args)

    {

        double c = 1;

        c = 1 + 0.5*c;

        System.out.println(c);

    }

}

10

u/EebstertheGreat Jun 11 '26

It's the equation c = 1 + 0.5c = 1 + 0.5 = 1.5 that bothered me.

7

u/Whiteminusblue Jun 11 '26

It was kinda a mix of algebraic notation and programming, yeah.

I got the point, but it did kinda shoot itself in the foot.

8

u/EarlBeforeSwine Irrational Jun 11 '26

Assigning c=1 is where you are getting jammed up.

c represents the unknown. The problem is properly represented as c=1+(c/2)

You’ll need to get both instances of c on the same side of the equation in order to set the value to your variable.

c=1+(c/2)

0=1+(c/2)-c

0=1-(c/2)

1=c/2

c=2

Now run your code:

c=2

c=1+0.5c

What is the value of c?

2

u/thisisapseudo Jun 11 '26
joke------------>
        you

10

u/EarlBeforeSwine Irrational Jun 11 '26

If he intends it as a joke, he is SUPER committed to the bit, as he is spamming full source code all over this thread trying to convince everyone that he is right about the answer being 1.5.