Mathematica 的几个技巧
绘图
画曲线的交点
有多种方法。
一是利用 Mesh ,MeshFunction, 二是求出点,并使用 Graphics
eg.1:
1 | (*Mesh*) |

eg.2:
1 | (*Mesh*) |

文本偏移与旋转
文本绘制使用 Text[expr,coords,offset,dir] ,其中 offset 为偏移量,单位为一个 point(一般是 1/72 inc) 。 dir 为文本的方向
eg.1 偏移
1 | Pt = {3,3}; |

eg.2 旋转
1 | Graphics[{ |

计算
求模等方程
1 | pts =Solve[Reduce[Mod[y^2, 23] == Mod[x^3 + x + 1, 23], {x,y},Integers] && 0<= x < 23 && 0<= y < 23]; |
1 | output = |