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 ko pt-br ru zh