Settings

Theme

Show HN: A whiteboard that writes math equations

whiteboard.lasky.io

126 points by Ilasky a year ago · 51 comments

Reader

jpl56 a year ago

Nice tool! I like the human like handwriting, but I'd prefer a more adult one.

Writing the denominator first looks weird to me, same as writing the square root symbol after what's under it.

  • flareback a year ago

    Looks like my 5 year old's handwriting. Sometimes I actually have no idea what it was writing. Plus the text was overlapping at times

  • lupire a year ago

    Writing the radical sign last is a sign of sophistication of maturity.

  • IlaskyOP a year ago

    Agreed the ordering is a bit weird. Working on figuring out a way to adjust that. Thanks for the feedback!

    • xenonite a year ago

      Also I would expect that the letters are consistent. Not necessarily legible, but always quite the same.

  • sieste a year ago

    agreed. I'm not sure what the constraints are regarding the font and its animation, but generally it's possible to look "human", and be elegant and legible at the same time.

  • nextcaller a year ago
lionkor a year ago

The handwriting really goes out of the window with a query like

> what is the derivative of e^-x?

It does a good job, but man is it hard to read

hardlianotion a year ago

Very cool. Could do with training on some decent handwriting

  • singlow a year ago

    Yes - it's fun that its a bit messy, but it also seems to write the same letter in very different ways in the same session. It should at least use consistent patterns for writing each letter even if their are minor variations to make it look more real.

  • pimlottc a year ago

    Agree, at times it is so sloppy that it’s not clear what’s being written.

withinrafael a year ago

I asked it to "provide a summary of Beetlejuice using purely numbers and addition" (nonsense) and it provided an answer that led to infinity. Now I'm wondering if I missed an interpretation in my many viewings of the film.

  • philshem a year ago

    I asked “what is the circumference of a square?” and it started tripping and then I asked again and it gave me something less trippy “P=4s”. In between it answer correctly for the circumference of a circle.

    • samschooler a year ago

      Here is the raw answer from the endpoint

      ./solve "what is the circumference of a square?"

      Solution: I'm sorry, but there seems to be a misunderstanding in the question. Squares don't have a circumference; they have a perimeter. Circumference is a term used for circular shapes. Let me explain the difference:

      1. For a square, we use the term 'perimeter' to describe the distance around its outer edge.

      2. The perimeter of a square is calculated by adding up the lengths of all four sides.

      \text{Perimeter of a square} = 4s

      3. Where 's' is the length of one side of the square.

      4. Circumference, on the other hand, is used for circular shapes like circles or ellipses.

      5. The circumference of a circle is calculated using the formula:

      \text{Circumference of a circle} = 2\pi r

      Where 'r' is the radius of the circle.

      I hope this clarifies the difference between perimeter (for squares) and circumference (for circles)!

  • samschooler a year ago

    ./solve "How tall is a giraffe in ants"

    Solution: I'm sorry, but this isn't a typical math problem. The height of a giraffe can't be accurately measured in ants, as ant sizes vary greatly between species. Instead, I can provide you with some interesting facts:

    1. An average adult giraffe is about 16-18 feet (4.8-5.5 meters) tall.

    2. The average size of an ant ranges from 0.08 to 1 inch (2-25 mm).

    3. If we were to use the largest ant size for a very rough estimate, a giraffe could be about 192-216 ant lengths tall. However, this is not a standard or accurate measurement.

loxias a year ago

This is really fun. Multiple questions seem to yield a blank page, does this mean it's hugged to death, or are my questions too difficult? :)

I'm enjoying probing the bounds of understanding by giving progressively harder problems. It found the roots of a cubic, and proved sqrt(2) and pi were irrational.

Too difficult to read the handwriting, and I'm curious about "how it works". All in all, a fantastic demo.

langcss a year ago

I asked it to prove Fermats Last Theorem and it started writing (some nonsense) into the margin. Which was funnny.

Cool project tho

  • IlaskyOP a year ago

    Unlike Fermat, the whiteboard has enough room in the margin :)

IlaskyOP a year ago

I was inspired by https://calligrapher.ai to see if I can make something that looks similar to it, but for math.

I ended up hooking up an LLM on the backend to solve math problems as well.

This ended up being more of an exploration in trying to make alternative outputs for LLMs that are a little more dynamic than just text and/or LaTeX.

gus_massa a year ago

It looks almost like my handwriting :).

It's interesting that each time it shows a different variant.

Anyway, when I press "get the derivative of f(x)=x^2" I get

              2-1
  f'(x) = 2 x
but the 1 is too big. (Do you need a screenshot?)
  • IlaskyOP a year ago

    Using a variety of hand-written inputs, so font variation would be present. If you could give a screenshot, that’d be helpful!

tempfile a year ago

Why does it write like it's having a stroke?

zamadatix a year ago

For anyone trying this on desktop if you make the window tiny the boldness, spacing, and overall readability becomes waaay better than when you have a large window.

samschooler a year ago

Made a lil script to compare the endpoint response vs the whiteboard. https://gist.github.com/samschooler/2b2831f232339a9d747934b7...

Just run: #./solve.js "What is the answer to life, the universe, everything?"

p0w3n3d a year ago

It solved `(x^2-1)/(x-1)` to `x+1` but it is not equal. It should be specified that `x` must not be equal 1 in this case.

renerick a year ago

Fun project, although it does seem to struggle with writing the longer it goes https://imgur.com/TntAViO

InDubioProRubio a year ago

HNug of Death atm, but cool idea. Could benefit from a tutorial mode, where you click on a symbol, it explains its function via whiteboard tutorial from youtube - in the whiteboard..

dzink a year ago

It looks like it was trained on someone's years of teaching math to kids and a collection of all of the handwriting they've done. Looks like, but not sure if it is.

filipeisho a year ago

What are you using to make handwritten text? Is it a model?

godelski a year ago

I asked for the number of ways to get a royal flush given an ace and King in your hand. It told me 4

Solopreneur427 a year ago

Its really cool how (talking about learning) we go from hand to technology, to again hand

haskman a year ago

Tried "what is (x-2-1)/(x-1)?" and got absolute gibberish in return

  • IlaskyOP a year ago

    Do you have a screenshot of what you got? Or can you describe it?

    I just tried it and it gave the correct answer.

ThefinalResult a year ago

I wrote: Write the gamma function and explain it's relationship to erfi

I got: Nothing

kleiba a year ago

A bit too sloppy and a bit too slow for my taste, but otherwise great!

jv22222 a year ago

IMHO the writing animation should run about 4x that speed.

donq1xote1 a year ago

This sounds very interesting! I will check it out.

lanstin a year ago

Wow, it can do ODEs. Pretty awesome.

viveknathani_ a year ago

this is extremely cool and useful.

mdrzn a year ago

Very cool project!

insane_dreamer a year ago

math prof handwriting checks out ;)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection