Wolfram 语言

代数和数论

罗马数字

将任意输出表达式中的整数转换为罗马数字.

时钟表盘.

In[1]:=
Click for copyable input
clock = ClockGauge[{10, 10, 30}, TicksStyle -> ColorData[40, 2], GaugeMarkers -> "FlatProfileNeedle"]
Out[1]=
In[2]:=
Click for copyable input
clock /. Text[s_Integer, rest__] :> Text[RomanNumeral[s], rest]
Out[2]=

指针式表盘.

In[3]:=
Click for copyable input
AngularGauge[ Quantity[714, "RomanOunces"], {Quantity[0, "RomanOunces"], Quantity[1000, "RomanOunces"]}, GaugeLabels -> "Unit", PlotTheme -> "Monochrome"] /. Text[s_Integer, rest__] :> Text[RomanNumeral[s], rest]
Out[3]=

相关范例

de en es fr ja ko pt-br ru