Original: Taste of Little Sister (wechat official ID: XjjDog), welcome to share, please reserve the source.

I was leaving work when my ex sent me a code. According to consistent urine, this should be a TMD mistake. But given today’s date, it doesn’t seem right on second thought.

To view the markdown brain map online, visit Mind.xjjdoc.cn

As a programmer, you have to solve the code. It’s like you see a library and you want to drag it down.

Plug the formula into Java code and it’s amazing.

public class X520 {
    public static void main(String[] args) {
        for (float y = 1.5 f; y >= -1.5 f; y -= 0.1 f) {
            for (float x = -1.5 f; x <= 1.5 f; x += 0.05 f) {
                float a = x * x + y * y - 1;
                System.out.print(a * a * a - x * x * y * y * y <= 0.0 f ? "$" : ""); } System.out.println(); }}}Copy the code

It actually outputs a graph that can bring the dead back to life. With this shape, I think I’m ready to be roasted by two passionate flames.

Why does this little formula have this magic? We’re going to check it out on wolframalpha.

Wolframalpha is an excellent online score calculator. Here the integral, not to say Tencent QQ such integral, but the real calculus. It can be used to calculate antiderivatives and definite integrals, double and triple integrals, and improper integrals.

We put the formula into it, and the resulting graph is even more brilliant, which is amazing.

After some research, I found another smoother heart-shaped formula, which is even more beautiful. Here’s the code:

Polar plot r = 2-2 sine theta + sine theta * (SQRT (| cosine theta |))/(sine theta + 1.4)Copy the code

This is what it looks like!

Look at that little tip of the heart, tickling like a cat’s paw.

Since the tool was capable of writing code, I had to use my brilliant mind to create a proprietary graphic. But after thinking about it for a long time, I could only think of this…

1 + 1 = 2Copy the code

If you can write the formula and you can’t write it, it’s all secondary.

Most importantly, I have to work overtime tonight, but I will ask for leave tomorrow.

As I spoke, I found another piece of code like this.

public class X520 {
    public static void main(String[] args) {
        double a, b, n = 10;
        String message = " I'm fucking love Xjjdog ";

        int print_message = 4;
        if (message.length() % 2! =0) {
            message += "";
        }
        for (a = 0; a < n; a++) {
            for (b = 0; b <= 4 * n; b++) {
                double distance1 = Math.sqrt(Math.pow(a - n, 2) + Math.pow(b - n, 2));
                double distance2 = Math.sqrt(Math.pow(a - n, 2) + Math.pow(b - 3 * n, 2));
                if (distance1 < n + 0.5 || distance2 < n + 0.5) {
                    System.out.print("S");
                } else {
                    System.out.print("");
                }
            }
            System.out.println();
        }
        for (a = 1; a < 2 * n; a++) {
            for (b = 0; b < a; b++)
                System.out.print("");
            for (b = 0; b < 4 * n + 1 - 2 * a; b++) {
                if (a >= print_message - 1 && a <= print_message + 1) {
                    double point = b - (4 * n - 2 * a - message.length()) / 2;

                    // prints message after leaving
                    // appropriate space
                    if (point < message.length() &&
                            point >= 0) {
                        if (a == print_message)
                            System.out.print
                                    (message.charAt((int)point));
                        else
                            System.out.print("");
                    }

                    else
                        System.out.print("S");
                }

                else
                    System.out.print("S"); } System.out.println(); }}}// This code is contributed by Anant Agarwal.
Copy the code

Xjjdog is a public account that doesn’t allow programmers to get sidetracked. Focus on infrastructure and Linux. Ten years architecture, ten billion daily flow, and you discuss the world of high concurrency, give you a different taste. My personal wechat xjjdog0, welcome to add friends, further communication.