gpt4 book ai didi

wolfram-mathematica - Mathematica 中为数学书制作图形的简单编程技术/技巧?

转载 作者:行者123 更新时间:2023-12-03 07:49:06 26 4
gpt4 key购买 nike

我尝试使用它。对于某些绘图来说它确实很好,但是当它涉及制作例如三角形时,我发现它非常复杂。我想出了如何绘制三角形,但如何添加角度标记,那些曲线?

由于我是写书这项工作的初学者,所以任何人都可以推荐我这是完成漂亮图形的最佳方法,例如如下图所示。哪些程序最好使用。 enter image description here

感谢您的任何建议和推荐。

最佳答案

这是执行第一个操作的简单/基本方法:

Graphics[{

(* The dashed circle segment *)
{
Dashing[{.04, .01}],
Darker[Orange],
AbsoluteThickness[2],
Circle[{0, 0}, 1, {1, 2 \[Pi]}]
},

(* The solid circle segment *)
{
Orange,
AbsoluteThickness[2],
Circle[{0, 0}, 1, {0, 1}]
},

(* The radial lines and the small circle segment *)
Line[{{0, 0}, {1, 0}}],
Line[{{0, 0}, {Cos[1], Sin[1]}}],
Circle[{0, 0}, .2, {0, 1}],

(* Various text labels *)
{
Text[Style["\[Theta]", 24], .3 {Cos[.5], Sin[.5]}],
Text[Style["s", 24], 1.1 {Cos[.5], Sin[.5]}],
Text[Style["r", 24], {.5, -.1}]
}
}]

Mathematica graphics

以下内容完全相同,但包装在 Manipulate 中并参数化在角度 alpha 上:

Manipulate[
Graphics[{
{Dashing[{.04, .01}], Darker[Orange], AbsoluteThickness[2],
Circle[{0, 0}, 1, {\[Alpha], 2 \[Pi]}]},
{Orange, AbsoluteThickness[2], Circle[{0, 0}, 1, {0, \[Alpha]}]},
Line[{{0, 0}, {1, 0}}],
Line[{{0, 0}, {Cos[\[Alpha]], Sin[\[Alpha]]}}],
Circle[{0, 0}, .2, {0, \[Alpha]}],
{Text[Style["\[Theta]",
24], .3 {Cos[\[Alpha]/2], Sin[\[Alpha]/2]}],
Text[Style["s", 24], 1.1 {Cos[\[Alpha]/2], Sin[\[Alpha]/2]}],
Text[Style["r", 24], {.5, -.1}]}
}],
{{\[Alpha], 1}, 0, 2 \[Pi]}]

如果移动 slider ,内容也会相应改变:

Mathematica graphics

关于wolfram-mathematica - Mathematica 中为数学书制作图形的简单编程技术/技巧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8748294/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com