Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a list of points into a list of substitution rules
ResourceFunction["PointsToRules"][pts,vars] converts the list of pts into a list of substitution rules in vars. |
Convert a list of numbers into a list of substitution rules:
In[1]:= | ![]() |
Out[1]= | ![]() |
This is the same as:
In[2]:= | ![]() |
Out[2]= | ![]() |
Convert a list of n-tuples into a list of substitution rules in n variables:
In[3]:= | ![]() |
Out[3]= | ![]() |
This is the same as:
In[4]:= | ![]() |
Out[4]= | ![]() |
Convert an n-tuples into a list of substitution rules in n variables:
In[5]:= | ![]() |
Out[5]= | ![]() |
This is the same as:
In[6]:= | ![]() |
Out[6]= | ![]() |
Convert a list of n-tuples into a list of associations using the resource function ToAssociations:
In[7]:= | ![]() |
Out[7]= | ![]() |
The number of variables must be compatible with the size of each point:
In[8]:= | ![]() |
In[9]:= | ![]() |
The first argument must be a vector or a matrix:
In[10]:= | ![]() |
The second argument must be a symbol or a list of symbols:
In[11]:= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License