-
I have the following script that plot cos(x) function and I want to plot more complex math expression like (1 + cos(1/x)) or (cos(x) * exp(-x)) , but I don't know how. #import "@preview/cetz:0.2.2": canvas,plot |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
[Answer] Thank you for this great tool. |
Beta Was this translation helpful? Give feedback.
[Answer]
I found how to write an expression. Instead of calc.cos I have to write something like x => calc.cos(5 * x) * calc.exp(-0.5 * x)
Thank you for this great tool.