diff --git a/mathics/builtin/drawing/plot_listplot.py b/mathics/builtin/drawing/plot_listplot.py index 7ff1468eb..277e8986d 100644 --- a/mathics/builtin/drawing/plot_listplot.py +++ b/mathics/builtin/drawing/plot_listplot.py @@ -386,7 +386,7 @@ class DiscretePlot(_ListPlot):
plots $expr$ with $x$ ranging from $n_{min}$ to $n_{max}$ usings steps $dn$.
'DiscretePlot'[{$expr_1$, $expr_2$, ...}, ...] -
plots the values of all $expri$. +
plots the values of all $expr_{i}$. The number of primes for a number $k$: diff --git a/mathics/builtin/files_io/files.py b/mathics/builtin/files_io/files.py index cd2d10f66..644c93b41 100644 --- a/mathics/builtin/files_io/files.py +++ b/mathics/builtin/files_io/files.py @@ -358,7 +358,7 @@ class Get(PrefixOperator):
Set the search path to the single directory $dir$ in the 'Get'.
'Path'->{"$dir_1$", "$dir_2$", ...}
Set the search path, '$PATH' to the list of directories. -
'Character_Encoding'->"{$name}" +
'CharacterEncoding'->"{$name}"
Set the file input encoding to $name$. diff --git a/mathics/core/convert/expression.py b/mathics/core/convert/expression.py index 60784bfea..5611aebc1 100644 --- a/mathics/core/convert/expression.py +++ b/mathics/core/convert/expression.py @@ -24,7 +24,7 @@ def to_expression( elements_conversion_fn: Callable = from_python, ) -> Expression: """ - This is an expression constructor that can be used when the Head and elements are not Mathics + This is an expression constructor that can be used when the Head and elements are not Mathics3 objects. For example to_expression("Plus", 1, 2, 3) """ if isinstance(head, str): @@ -70,7 +70,7 @@ def to_mathics_list( ) -> ListExpression: """ This is an expression constructor for list that can be used when - the elements are not Mathics objects. + the elements are not Mathics3 objects. For example:: @@ -90,7 +90,7 @@ def to_mathics_list( def to_numeric_args(mathics_args: BaseElement, evaluation) -> tuple: """ - Convert Mathics arguments, such as the arguments in an evaluation + Convert Mathics3 arguments, such as the arguments in an evaluation method a Python list that is suitable for feeding as arguments into SymPy, NumPy, or mpmath. diff --git a/mathics/core/expression.py b/mathics/core/expression.py index 58f1f744a..d39de744b 100644 --- a/mathics/core/expression.py +++ b/mathics/core/expression.py @@ -621,8 +621,9 @@ def evaluate( def evaluate_elements(self, evaluation) -> "Expression": """ - return a new expression with the head and the - evaluable elements evaluated, according to the attributes. + Return a new expression with the head and the + evaluable elements evaluated, taking into account the + the expression's head attribute and its HOLD properties. """ head = self._head if isinstance(head, EvalMixin): diff --git a/mathics/session.py b/mathics/session.py index 9db69f9b9..ad9acd628 100644 --- a/mathics/session.py +++ b/mathics/session.py @@ -4,9 +4,9 @@ In particular we provide: -* a class to create a Mathics session, -* load the Mathics core settings files (written in WL), -* read and set Mathics Settings. +* a class to create a Mathics3 session, +* load the Mathics core settings files (written in WL), +* read and set Mathics3 Settings. """ import os @@ -84,7 +84,7 @@ def load_default_settings_files( def get_settings_value(definitions: Definitions, setting_name: str): - """Get a Mathics Settings` value with name "setting_name" from + """Get a Mathics3 Settings` value with name "setting_name" from definitions. If setting_name is not defined return None. """ try: