Yusuke Oda

Results 232 comments of Yusuke Oda

I think the whole match case can't be supported in `latexify.function` because there are capture clauses that there aren't any corresponding syntax in math. It would be better to support...

The resulting LaTeX could be expressed semilarly to that of the if clause: ```python match x: case 0: return 1 case _: return math.sin(x)/x ``` $$\left\\{ \begin{array}{ll} 1, & \mathrm{if}...

@erica-w-fu I will add some documentation. For now you can install the development version as follows: ``` cd /path/to/latexify_py python -m venv venv # Create a virtual environment python -m...

> Are there any build tools and commands that you use to test within jupyter notebook? This library doesn't run tests within jupyter. If you need to run tests on...

Thanks! if each case doesn't require additional identifiers (capture), it would be good to be implemented. I guess they could be proposed by separate pull requests (to keep minimality of...

@Yuqi07 Not sure how you installed the library. Could you provide the complete step you tried?

pip install from PyPI doesn't work for development. You need to install the main branch directly: `pip install -e '.[dev]'`

Note that in general arithmetic is not associative even if all operands are numbers. For example: So this treatment is available only when the function always takes integers.

@Casper-Guo I think the code above is an obsolete permalink. In the current implementation, FunctionCodegen introduced an additional analyzer that obtains subtree of range: https://github.com/google/latexify_py/blob/071a12d06ae67c578f92f973945c0067b3f4976d/src/latexify/codegen/function_codegen.py#L334 We can implement a specific...

@Casper-Guo Thanks for taking your effort! Assigned to you anyway since you are the only person who attended this discussion.