Wolfram 语言

核心语言

作为注释的数据集

Dataset 对象可被直接用做 EntityValue 的注释.

构建稀有气体属性的数据集.

In[1]:=
Click for copyable input
gases = EntityValue[ EntityClass["Element", "NobleGas"], {"BoilingPoint", "Density"}, "Dataset"]
Out[1]=

找出有最高沸点温度的两个原子.

In[2]:=
Click for copyable input
gases[TakeLargest[2], "BoilingPoint"]
Out[2]=

找出密度最小的两个原子.

In[3]:=
Click for copyable input
gases[TakeSmallest[2], "Density"]
Out[3]=

在二维绘图中可视化每个稀有气体的密度和沸点.

In[4]:=
Click for copyable input
ListLogPlot[gases, Frame -> True, FrameLabel -> Automatic]
Out[4]=

相关范例

de en es fr ja ko pt-br ru