plot a function with points of interest - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Package : Calculus 1 : Visualization : Student/Calculus1/FunctionChart

Student[Calculus1][FunctionChart] - plot a function with points of interest

Calling Sequence

FunctionChart(f(x), x, opts)

FunctionChart(f(x), x = a..b, opts)

FunctionChart(f(x), a..b, opts)

Parameters

f(x)

-

algebraic expression in variable 'x'

x

-

name; specify the independent variable

a, b

-

algebraic expressions; specify the plot range

opts

-

equation(s) of the form option=value where option is one of arrowoptions, concavity, functionoptions, numarrows, pointoptions, sign, slope, or Student plot options; specify options for the plot

Description

• 

The FunctionChart(f(x), x=a..b) command plots the function with qualitative information about the properties of the function f(x).  Color, arrows, fill, line thickness, line style, and various point marks are used to indicate regions of increase, decrease, upward and downward concavity, critical points, and other features.

• 

Note:  The FunctionChart routine can be called using either the FunctionChart command or the FunctionPlot command.  They are identical commands.  Use the command name that you prefer.

• 

Circles, diamonds and crosses are used to display the roots, extreme points and inflection points of the function.

• 

If the independent variable can be uniquely determined from the expression, the parameter x need not be included in the calling sequence.

  

 

  

Property Descriptions

  

 

• 

To describe the characteristics with which a property is plotted, the following property descriptions can be used.

  

 

  

arrow

  

Display the regions where the property is positive with arrows pointing up and regions where the property is negative with arrows pointing down.

  

 

  

color(poscolor, negcolor)

  

Plot the function with the color poscolor where the property is positive, and negcolor where the property is negative. For more information on plot colors, see plot/color.

  

 

  

filled(poscolor, negcolor)

  

Plot the function with a fill colored poscolor where the property is positive, and negcolor where the property is negative. For more information on plot colors, see plot/color.

  

 

  

linestyle(posstyle, negstyle)

  

Plot the function with a line style posstyle where the property is positive, and negstyle where the property is negative, where negstyle and posstyle are chosen from solid, dash, dot, and dashdot.

  

 

  

thickness(posthick, negthick)

  

Plot the function with a thickness posthick where the property is positive, and negthick where the property is negative, where negthick and posthick are chosen from 0, 1, 2, and 3.

  

 

• 

The opts argument can contain any of the Student plot options or any of the following equations that set plot options.

  

 

  

arrowoptions = list

  

Options which are passed to the plots[arrow] command when plotting arrows. For more information on valid options, see plots[arrow].

  

 

  

concavity = property description or list of property descriptions

  

The concavity is shown using these properties.  By default, the concavity is shown by with arrows pointing up/down where the concavity is positive/negative and distinct fill colors also highlighting the different concavity regions. These properties are not used if they are used to display slope or sign. They can be turned off by using concavity = [].

  

 

  

functionoptions = list

  

A list of options for the plot of the function.  The options color, linestyle, and thickness are ignored if they are used to display sign, slope, or concavity.  By default the function is plotted as a colored curve with thickness equal to 1. For more information on plot options, see plot/options.

  

 

  

numarrows = positive integer

  

The number of arrows used when using arrows to display a property.

  

 

  

pointoptions = list

  

A list of options for the plot of the roots, extreme points and inflection points.  The option symbol cannot be used. For more information on plot options, see plot/options.

  

 

  

sign = property description or list of property descriptions

  

Regions where the sign of the function is positive (0<fx) and where it is negative (fx<0) are shown by these properties. By default, the sign is not shown with any property descriptions.

  

 

  

slope = property description or list of property descriptions

  

The slope is shown using these properties.  By default, the slope is shown by coloring the curve in distinct colors where the slope is positive or negative. These properties are not used if they are used to display concavity or sign. They can be turned off by using slope = [].

  

 

  

caption = anything

  

A caption for the plot.

  

The default caption is constructed from the parameters and the command options. caption = "" disables the default caption. For more information about specifying a caption, see plot/typesetting.

Examples

withStudent&lsqb;Calculus1&rsqb;&colon;

FunctionChartx&ExponentialE;x&comma;6..1&comma;concavity&equals;&comma;slope&equals;colorred&comma;black

FunctionChartsinx&plus;x&comma;pointoptions&equals;symbolsize&equals;20

FunctionChartsinx&plus;x2&comma;slope&equals;thickness2&comma;1&comma;linestylesolid&comma;dash&comma;concavity&equals;arrow&comma;pointoptions&equals;symbolsize&equals;20

FunctionChart2x3&plus;1&comma;x&comma;sign&equals;linestyledash&comma;solid&comma;colorcyan&comma;magenta&comma;filledcoral&comma;wheat&comma;thickness3&comma;1&comma;slope&equals;&comma;concavity&equals;

The command to create the plot from the Plotting Guide is

FunctionChartx34x250x&plus;12x2x17

See Also

plot/options, plot/typesetting, Student, Student plot options, Student[Calculus1], Student[Calculus1][Asymptotes], Student[Calculus1][CriticalPoints], Student[Calculus1][CurveAnalysisTutor], Student[Calculus1][ExtremePoints], Student[Calculus1][InflectionPoints], Student[Calculus1][Roots], Student[Calculus1][VisualizationOverview]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam