Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites

Only the first nine parts of the Basic Tutorial are included in this draft.

Basic Tutorial (part 7 of 10)

7 Working with Expressions

In this seventh part of the Basic Tutorial you will learn about:

  • The structure of expressions
  • Constructing expressions
  • Getting parts of expressions
  • Combining expressions
  • Patterns
  • Pure functions

The structure of expressions

Expressions are fundamental to Mathematica, and are discussed throughout the documentation. For more information see especially Section 2.1.1 and Appendix A.1 in The Mathematica Book.

A normal expression is an expression that has a head and zero or more elements. The head of the normal expression [Graphics:Images/Basic7_gr_1.gif], for example, is f, and the elements are a and b.

The head and the elements in a normal expression are also expressions, and can, for example, be other normal expressions. The second element in [Graphics:Images/Basic7_gr_2.gif], for example, is the normal expression g[2].

Expressions that are not normal expressions are called atoms. Atoms are either symbols, numbers, or strings. All expressions are constructed from atoms. The atoms in the normal expression [Graphics:Images/Basic7_gr_3.gif], for example, are the symbols f and g and the numbers 1 and 2.

If expr is an expression, Head[expr] gives the head of expr, Length[expr] gives the number of elements in expr, and Part[expr,i] (or expr[[i]]) gives the element at position i in expr. For example:

[Graphics:Images/Basic7_gr_4.gif]
[Graphics:Images/Basic7_gr_5.gif]
[Graphics:Images/Basic7_gr_6.gif]
[Graphics:Images/Basic7_gr_7.gif]
[Graphics:Images/Basic7_gr_8.gif]
[Graphics:Images/Basic7_gr_9.gif]

Constructing expressions

One way to construct an expression is to type it in to Mathematica. An expression is constructed every time you enter an input. For example, when you enter [Graphics:Images/Basic7_gr_10.gif], Mathematica constructs the expression [Graphics:Images/Basic7_gr_11.gif] to represent that input. Expressions are also constructed automatically to represent results. When you evaluate [Graphics:Images/Basic7_gr_12.gif], for example, the expression 4 is generated to represent the result.

The Table function can be used for constructing lists and arrays. Here is an example in which Table returns a list of integers. The first argument i^2 in this example is the expression to evaluate to compute elements in the list, and the second argument [Graphics:Images/Basic7_gr_13.gif] specifies that the first argument should be evaluated for values of i ranging from 1 to 10. The second argument is referred to as an iteration specification, since it describes the iteration to use in constructing the result.

[Graphics:Images/Basic7_gr_14.gif]
[Graphics:Images/Basic7_gr_15.gif]

There are several variant ways to use the Table function. Here is an example in which Table is used to generate an array of random numbers. Since the table index is not used in the first argument, the table index can be omitted from the iteration specifications.

[Graphics:Images/Basic7_gr_16.gif]
[Graphics:Images/Basic7_gr_17.gif]

Another function that can be used for constructing general lists and arrays is Array. The arguments in Array are used in a slightly different way than the arguments of Table. The difference is perhaps best illustrated by looking at a few examples, or by reviewing the documentation for these functions. Here is an example showing the use of Array to construct an array of expressions where each element of the array has a head of f.

[Graphics:Images/Basic7_gr_18.gif]
[Graphics:Images/Basic7_gr_19.gif]

There are many other functions that are available for constructing special types of expressions. For example, the Range function can be used to generate a list of integers.

[Graphics:Images/Basic7_gr_20.gif]
[Graphics:Images/Basic7_gr_21.gif]

Notice that this same list can also be constructed using Table or Array.

[Graphics:Images/Basic7_gr_22.gif]
[Graphics:Images/Basic7_gr_23.gif]
[Graphics:Images/Basic7_gr_24.gif]
[Graphics:Images/Basic7_gr_25.gif]

There is always more than one way to construct an expression. Sometimes the best approach involves Table or Array, and sometimes it is better to use a more specialized function, such as Range. Other functions that are frequently used to construct expressions include DiagonalMatrix, IdentityMatrix, Sum, Product, NestList, and NestWhileList.

Combining expressions

Basic functions for combining expressions include Join, Append, Prepend, and Insert, and set operations such as Union and Intersection.

The Join function can be used to combine the elements from two or more expressions into a single expression. For example:

[Graphics:Images/Basic7_gr_26.gif]
[Graphics:Images/Basic7_gr_27.gif]

Append is used to insert an element to the end of an expression, and Prepend is used to insert an element at the beginning of an expression. For example:

[Graphics:Images/Basic7_gr_28.gif]
[Graphics:Images/Basic7_gr_29.gif]

The Insert function can be used to insert an element anywhere in an expression. The first argument in Insert gives the original expression, the second argument gives the element to insert, and the third argument position at which to insert that element. For example:

[Graphics:Images/Basic7_gr_30.gif]
[Graphics:Images/Basic7_gr_31.gif]

The Union and Intersection functions do more than just combine expressions. These functions also compare elements in expressions and return a result with the elements sorted in a built-in canonical order.

[Graphics:Images/Basic7_gr_32.gif]
[Graphics:Images/Basic7_gr_33.gif]
[Graphics:Images/Basic7_gr_34.gif]
[Graphics:Images/Basic7_gr_35.gif]

You can also use the Sort function if you simply want the elements to be returned in sorted order.

[Graphics:Images/Basic7_gr_36.gif]
[Graphics:Images/Basic7_gr_37.gif]

Getting parts of expressions

The Part function can be used to pick an element out of an expression. Here is an example in which Part is used to pick out the element at position 3 in a list with five elements. The notation data[[3]] is used for [Graphics:Images/Basic7_gr_38.gif].

[Graphics:Images/Basic7_gr_39.gif]
[Graphics:Images/Basic7_gr_40.gif]

There are several other ways to use Part to get parts of an expression, some of which have already been mentioned in this tutorial. For a review, see the documentation for Part.

You can use the Take function to pick out a range of elements from an expression. For example, this input picks out the first three elements from the value of data.

[Graphics:Images/Basic7_gr_41.gif]
[Graphics:Images/Basic7_gr_42.gif]

You can use Drop to discard a range of elements from an expression. For example, another way to pick out the first three elements in the value of data is to discard the last two elements. A negative number in the second argument of Drop indicates that the position should be counted from the end of the expression.

[Graphics:Images/Basic7_gr_43.gif]
[Graphics:Images/Basic7_gr_44.gif]

A qualitatively different way to select parts of expressions is to select parts that match some pattern or criterion. Two functions in Mathematica for this purpose are Select and Cases.

Here is an example showing the use of Select to pick out all of the even numbers in a list. The result includes all of the elements for which EvenQ gives True.

[Graphics:Images/Basic7_gr_45.gif]
[Graphics:Images/Basic7_gr_46.gif]

Cases is similar to Select except that the second argument in Cases specifies a pattern. For example, the pattern _?EvenQ matches any expression for which EvenQ applied to that expression gives True. Patterns are discussed in the next section.

[Graphics:Images/Basic7_gr_47.gif]
[Graphics:Images/Basic7_gr_48.gif]

Patterns

A pattern is an expression that is used to specify a set of expressions. For example, the pattern _?EvenQ specifies the set of expressions for which EvenQ applied to that expression gives True.

Any expression in the set of expressions specified by a pattern is said to match the pattern. For example, the number 2 would be said to match the pattern _?EvenQ.

Mathematica includes a rich language for constructing patterns. Only a few of the more common types of patterns will be mentioned here. Patterns are covered in detail in Section 2.3 of The Mathematica Book.

The simplest non-trivial pattern is Blank[], which matches any expression. Blank[] is usually entered as a single underscore character _. The pattern [Graphics:Images/Basic7_gr_49.gif], for example, matches any list with two elements.

The pattern _h, or Blank[h], matches any expression with a head of h. For example, _List matches any list (or more precisely, any expression with a head of List), _Integer matches any integer, _Real matches any real number, and so forth.

The pattern ___ (three underscore characters), or BlankNullSequence[], matches any sequence of expressions. For example, {___} matches any list with any number of elements.

The pattern [Graphics:Images/Basic7_gr_50.gif] mentioned at the beginning of this section is an example of a pattern based on PatternTest. In FullForm notation, [Graphics:Images/Basic7_gr_51.gif] is [Graphics:Images/Basic7_gr_52.gif]. In general, [Graphics:Images/Basic7_gr_53.gif], or [Graphics:Images/Basic7_gr_54.gif], matches any expression that matches p and for which test applied to that expression gives True. You can use PatternTest to define arbitrarily complicated tests for whether or not an expression matches a pattern.

Another way to set up your own test for whether or not an expression matches a pattern is to use Condition. [Graphics:Images/Basic7_gr_55.gif], or [Graphics:Images/Basic7_gr_56.gif], matches any expression that matches p and for which test evaluates to True. Unlike the test in PatternTest, which is applied to the expression that matches the pattern, the test in Condition must itself evaluate to True for the pattern to match.

Patterns based on Condition are almost always used in conjunction with named patterns. Named patterns are discussed in Section 2.3.3 of The Mathematica Book. A named pattern is a pattern that is accompanied by a symbolic name. The name of a named pattern provides a convenient way to refer elsewhere in a pattern or rule to the expression that matches the pattern. The ability to give names to patterns is an enormously useful feature of Mathematica pattern matching.

For example, the Condition pattern [Graphics:Images/Basic7_gr_57.gif] matches any expression for which EvenQ gives True. In this pattern, the symbol p is used as the name of a pattern. That name is used in the test expression, where it refers to the expression that matches the pattern.

Named patterns are also useful in rules. For example, in the rule [Graphics:Images/Basic7_gr_58.gif], the symbol p in the pattern [Graphics:Images/Basic7_gr_59.gif] on the left side of the rule is the name of that pattern. The symbol p on the right side of this rule refers to the expression that matches the pattern on the left side of the rule. This particular rule replaces any expression that matches the pattern [Graphics:Images/Basic7_gr_60.gif] with twice that expression.

[Graphics:Images/Basic7_gr_61.gif]
[Graphics:Images/Basic7_gr_62.gif]

Names for patterns are entered using Pattern. In FullForm notation, [Graphics:Images/Basic7_gr_63.gif] is [Graphics:Images/Basic7_gr_64.gif]. Special notations for Pattern, such as [Graphics:Images/Basic7_gr_65.gif], are almost always more convenient than the corresponding FullForm notations.

Using patterns

Patterns and rules can be constructed for performing almost any operation. Here are a few examples to illustrate some of the operations that can be done using patterns.

The Condition pattern [Graphics:Images/Basic7_gr_66.gif] is used in this example to select from a list the elements that are less than 5.

[Graphics:Images/Basic7_gr_67.gif]
[Graphics:Images/Basic7_gr_68.gif]

This example shows a more complicated Condition pattern that selects from a list of pairs the pairs for which the first element is smaller than the second element.

[Graphics:Images/Basic7_gr_69.gif]
[Graphics:Images/Basic7_gr_70.gif]

Here is a rule that replaces all of the inexact real numbers (expressions with a head of Real) in an expression with exact numbers computed using Rationalize. The rule in this example is an example of a delayed rule. Delayed rules are discussed in Section 2.4.8 of The Mathematica Book. A delayed rule is needed here so that the right side of this rule is not evaluated until the expression associated with the named pattern is inserted into the right side of the rule. A delayed rule is entered using the notation [Graphics:Images/Basic7_gr_71.gif], or in FullForm notation, [Graphics:Images/Basic7_gr_72.gif] using RuleDelayed rather than Rule.

[Graphics:Images/Basic7_gr_73.gif]
[Graphics:Images/Basic7_gr_74.gif]

Here is a rule that sorts the elements in a list. The pattern on the left side of this rule uses both Condition and BlankNullSequence. The pattern [Graphics:Images/Basic7_gr_75.gif] matches any list with two or more elements in which the adjacent elements that match the named patterns [Graphics:Images/Basic7_gr_76.gif] and [Graphics:Images/Basic7_gr_77.gif] satisfy [Graphics:Images/Basic7_gr_78.gif].  This rule is applied using ReplaceRepeated ([Graphics:Images/Basic7_gr_79.gif]) because it is necessary to apply this rule repeatedly for it to have the desired effect.

[Graphics:Images/Basic7_gr_80.gif]
[Graphics:Images/Basic7_gr_81.gif]

Functional operations on expressions

Two of the most frequently used functions in Mathematica are Map and Apply. These functions are used to apply other functions to expressions or to the elements of expressions.

Here is an example showing a typical use of the Map function. In this example, the function f is applied to the elements of a list.

[Graphics:Images/Basic7_gr_82.gif]
[Graphics:Images/Basic7_gr_83.gif]

Here is an example showing a typical use of Apply. The head of the list in this example is replaced by f.

[Graphics:Images/Basic7_gr_84.gif]
[Graphics:Images/Basic7_gr_85.gif]

These operations are useful in a wide variety of common situations. Here is an example in which Apply is used with Plus to compute the sum of a list of numbers. The Apply function replaces the head of the list {1,2,3,4,5} with Plus to give Plus[1,2,3,4,5] as an intermediate result, after which the Plus function computes the sum.

[Graphics:Images/Basic7_gr_86.gif]
[Graphics:Images/Basic7_gr_87.gif]

Here is an example in which Map handles the key step of converting a list of coordinate pairs into a list of Point graphics primitives. The Table function constructs a list of coordinate pairs, and Map applies Point to each element in that list.

[Graphics:Images/Basic7_gr_88.gif]
[Graphics:Images/Basic7_gr_89.gif]
[Graphics:Images/Basic7_gr_90.gif]
[Graphics:Images/Basic7_gr_91.gif]

[Graphics:Images/Basic7_gr_92.gif]

[Graphics:Images/Basic7_gr_93.gif]

There are many other functional operations that are available in Mathematica. Functional operations are discussed in Section 2.2 of The Mathematica Book.

Mapping over lists

It is worth mentioning that, for many functions, mapping over lists is effectively invoked automatically. For example, Factor automatically maps over the elements in a list.

[Graphics:Images/Basic7_gr_94.gif]
[Graphics:Images/Basic7_gr_95.gif]

The same result can be achieved using Map, but Map is obviously not necessary here.

[Graphics:Images/Basic7_gr_96.gif]
[Graphics:Images/Basic7_gr_97.gif]

Mapping over lists is also done automatically when the Listable attribute is used. An attribute is a property of a symbol. Attributes are discussed in Section 2.5.3 of The Mathematica Book .

For example, although Map can be used for an operation such as computing the cosine of each element in a list, this same operation can be handled simply by applying Cos to the list.

[Graphics:Images/Basic7_gr_98.gif]
[Graphics:Images/Basic7_gr_99.gif]
[Graphics:Images/Basic7_gr_100.gif]
[Graphics:Images/Basic7_gr_101.gif]

You can check that Cos has the Listable attribute using the Attributes function.

[Graphics:Images/Basic7_gr_102.gif]
[Graphics:Images/Basic7_gr_103.gif]

Level specifications

Many function such as Map and Apply accept optional arguments that specify the level within an expression at which they should operate. Most uses of level specifications can be understood by considering a few examples. Level specifications are discussed in greater detail in Section 2.1.7 and in Appendix A.3.6 in The Mathematica Book.

Level 1 in an expression corresponds to the elements of an expression. By default, the Map function maps at level 1.

[Graphics:Images/Basic7_gr_104.gif]
[Graphics:Images/Basic7_gr_105.gif]

Level 2 in an expression corresponds to the elements of the elements of the expression. The optional third argument in Map allows you to specify the level or levels at which to map a function. For example, the level specification [Graphics:Images/Basic7_gr_106.gif] in Map specifies that a function should be mapped only to the elements of the elements of an expression.

[Graphics:Images/Basic7_gr_107.gif]
[Graphics:Images/Basic7_gr_108.gif]

Level 0 in an expression corresponds to the expression itself.

[Graphics:Images/Basic7_gr_109.gif]
[Graphics:Images/Basic7_gr_110.gif]

The default behavior of the Apply function is to operate at level 0 of an expression, which means that it replaces the head of an expression.

[Graphics:Images/Basic7_gr_111.gif]
[Graphics:Images/Basic7_gr_112.gif]

You can use the optional third argument in Apply to specify expressions at some other level. Here is an example in which the level specification {1} is used to specify that the heads of the elements of an expression should be replaced.

[Graphics:Images/Basic7_gr_113.gif]
[Graphics:Images/Basic7_gr_114.gif]

In addition to Map and Apply, other functions that accept level specifications include Cases, Count, FreeQ, Level, MapIndexed, Position, Replace, and Scan.

Pure functions

A pure function is a function that is introduced without defining a value for a symbol. Pure functions are constructed in Mathematica using Function expressions.

To illustrate the use of pure functions, here is an example in which a function f is defined and then mapped on to the elements of a list of pairs. This function adds the elements in each pair.

[Graphics:Images/Basic7_gr_115.gif]
[Graphics:Images/Basic7_gr_116.gif]
[Graphics:Images/Basic7_gr_117.gif]

This same operation can be performed using a Function expression. This avoids the need for the assignment to define the function.

[Graphics:Images/Basic7_gr_118.gif]
[Graphics:Images/Basic7_gr_119.gif]

Function expressions can also be entered without introducing symbols to represent the variable or variables of the function. The pure function [Graphics:Images/Basic7_gr_120.gif] is equivalent to [Graphics:Images/Basic7_gr_121.gif], which can be entered using the notation [Graphics:Images/Basic7_gr_122.gif].

[Graphics:Images/Basic7_gr_123.gif]
[Graphics:Images/Basic7_gr_124.gif]

Function expression can be set up for use with any number of arguments. For example, the function [Graphics:Images/Basic7_gr_125.gif] takes two arguments and adds those arguments together. Here is an example showing the use of that function applied directly to two arguments.

[Graphics:Images/Basic7_gr_126.gif]
[Graphics:Images/Basic7_gr_127.gif]

The equivalent function using Slot variables is [Graphics:Images/Basic7_gr_128.gif]. Parentheses are included here to avoid ambiguity, even though they are not required.

[Graphics:Images/Basic7_gr_129.gif]
[Graphics:Images/Basic7_gr_130.gif]

This function can be used in conjunction with Apply and a non-default level specification to add up the elements in each pair in a list of pairs.

[Graphics:Images/Basic7_gr_131.gif]
[Graphics:Images/Basic7_gr_132.gif]

All of these operations can also be done using assignments to define functions. For example:

[Graphics:Images/Basic7_gr_133.gif]
[Graphics:Images/Basic7_gr_134.gif]
[Graphics:Images/Basic7_gr_135.gif]

The choice of whether to use a Function expression or an assignment to define a separate function is normally a matter of personal preference. Function expression simply provide a convenient way of introducing functions without the need to assign new values for a symbol.

Exercises

Exercise 7.1 Constructing an expression

An occasionally useful technique for testing and debugging Mathematica programs is to observe the results after inserting random numerical values for any symbolic variables in the program.

Construct from the following list of variables a list of rules to for replacing each variable in the list with a value generated using Random.

[Graphics:Images/Basic7_gr_136.gif]
[Graphics:Images/Basic7_gr_137.gif]

Such a list can be constructed in a variety of ways. The result should be similar to:

[Graphics:Images/Basic7_gr_138.gif]

Use your list of rules to find the one symbolic variable in the following expression that is not among the six variables included in the value of vars. After inserting numerical values for the listed variables, this expression will collapse to a simple expression in which the extra variable should be obvious.

expr = -((11 + 11 xxz + 7 xyy + 21 yzy)/
     (1 + 5 xxy + 11 xxz + 11 yxx)^2) +
   (2 xxy + 10 xxz + 6 xyy + 9 yzy + 2 yzz)/
    (3 + 11 xxy + 5 xxz + 14 xyy + 5 yzy)^2 +
   (5 + 10 xxy + 7 xxz + 11 xyy + 8 yxx + 4 yzz)^2/
    (6 xxy + 9 xxz + 8 xyy + 2 yxx + 9 yzy) -
   (4 + 2 xxy + 4 xxz + 10 xyy + 8 yxx + 5 yzy + 4 yzz)/
    (3 xxy + 6 xxz + 4 yxx + 6 yzz)^2 +
   (11 xxy + 8*xxz + 5 xyy + 6 yxy + yzz)/
    (1 + 8 xxy + 7 xxz + 11 yxx + 8 yzz)^2 +
   (4 xyy + 9 yxx + 3 yzy + 6 yzz)^2/(3 xxz + 19 xyy + 15 yzz);

Exercise 7.2 Selecting elements in a list

Here is a polynomial with three negative roots, two positive roots, and two complex roots.

[Graphics:Images/Basic7_gr_139.gif]
[Graphics:Images/Basic7_gr_140.gif]

This picks out all of the negative roots.

[Graphics:Images/Basic7_gr_141.gif]
[Graphics:Images/Basic7_gr_142.gif]

The same result can be obtained using Cases.

[Graphics:Images/Basic7_gr_143.gif]
[Graphics:Images/Basic7_gr_144.gif]

Use Select or Cases to construct a list that includes all five real roots.

Exercise 7.3 Discarding outliers from data

Here is a list of 31 numbers, four of which are significantly larger or significantly smaller than the rest.

[Graphics:Images/Basic7_gr_145.gif]

The four outliers can be seen in a plot of data.

[Graphics:Images/Basic7_gr_146.gif]

[Graphics:Images/Basic7_gr_147.gif]

[Graphics:Images/Basic7_gr_148.gif]

Use Select to discard all elements in data that are not between 40 and 60. The result should be a list with 27 elements. You can also check your result by making another plot.

Exercise 7.4 Operating on the elements in a list

Show a way to construct a list that gives the square of the difference between the elements in each pair in the following list.

[Graphics:Images/Basic7_gr_149.gif]

The result will be:

[Graphics:Images/Basic7_gr_150.gif]

Exercise 7.5 Selecting parts of a matrix

Construct a vector consisting of the sum of the first two columns in this matrix. You can use the Part function to pick out elements, rows, and columns from a matrix.

[Graphics:Images/Basic7_gr_151.gif]
[Graphics:Images/Basic7_gr_152.gif]

Exercise 7.6 Using listability

Show how to construct the result shown here starting with the vector v and without using Map.

[Graphics:Images/Basic7_gr_153.gif]
[Graphics:Images/Basic7_gr_154.gif]
[Graphics:Images/Basic7_gr_155.gif]

Exercise 7.7 Patterns and rules

Here is a simple Graphics expression containing a Line primitive. The argument of the Line primitive is a list of pairs of real numbers. Each pair of numbers specifies a coordinate in two dimensions.

[Graphics:Images/Basic7_gr_156.gif]
[Graphics:Images/Basic7_gr_157.gif]
[Graphics:Images/Basic7_gr_158.gif]

[Graphics:Images/Basic7_gr_159.gif]

[Graphics:Images/Basic7_gr_160.gif]

Apply a rule to this Graphics expression to replace all pairs of real numbers [Graphics:Images/Basic7_gr_161.gif] with [Graphics:Images/Basic7_gr_162.gif]. so that the coordinates in each pair are reversed, and display the result. This replacement corresponds to exchanging the vertical and horizontal dimensions, or equivalently, to reflecting the image across a diagonal.

Now apply the same rule to the  Graphics expression generated by the following Plot input, and display the result.

[Graphics:Images/Basic7_gr_163.gif]

[Graphics:Images/Basic7_gr_164.gif]

[Graphics:Images/Basic7_gr_165.gif]

Exercise 7.8 Levels in expressions

Here is [Graphics:Images/Basic7_gr_166.gif] array of pairs of symbols.

[Graphics:Images/Basic7_gr_167.gif]
[Graphics:Images/Basic7_gr_168.gif]
[Graphics:Images/Basic7_gr_169.gif]

Show a way to use Apply to construct from this array the following array, the elements of which are the sum of the elements in the corresponding pair in the original array:

[Graphics:Images/Basic7_gr_170.gif]

Exercise 7.9 Finding elements in a list

This assignment introduces a list of integers.

[Graphics:Images/Basic7_gr_171.gif]

This input picks out the last negative number in the list.

[Graphics:Images/Basic7_gr_172.gif]
[Graphics:Images/Basic7_gr_173.gif]

Find an input that picks out the first even element in the list.

Exercise 7.10 Iteration to a fixed point

The following input illustrates a method of solving the equation [Graphics:Images/Basic7_gr_174.gif]. This method works by applying the pure function [Graphics:Images/Basic7_gr_175.gif] to a number over and over until the result is the same as the original number. This method is called iteration to self-consistency, or iteration to a fixed point.

[Graphics:Images/Basic7_gr_176.gif]
[Graphics:Images/Basic7_gr_177.gif]

The result can be checked using FindRoot. The algorithm used by FindRoot is almost always faster and more reliable than iteration to a fixed point, but the essential idea of iteration to a fixed point is nevertheless useful in a surprising variety of calculations.

[Graphics:Images/Basic7_gr_178.gif]
[Graphics:Images/Basic7_gr_179.gif]

Use iteration to a fixed point with FixedPoint or FixedPointList to find a solution to the equation [Graphics:Images/Basic7_gr_180.gif].



 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: