Plotting f(x) with Maple: -4 < x < 4

  • Context: Maple 
  • Thread starter Thread starter MCooltA
  • Start date Start date
  • Tags Tags
    Maple Plotting
Click For Summary
SUMMARY

The discussion focuses on plotting the function f(x) in Maple for the range -4 < x < 4. The user defined the function using parameters a, b, and c, but encountered a warning stating 'unable to evaluate the function numeric values in the region' when attempting to plot it. The solution involves replacing the variable 'e' with the function 'exp(...)' to correctly represent the exponential function in Maple.

PREREQUISITES
  • Familiarity with Maple software for mathematical computations
  • Understanding of function definitions in Maple
  • Knowledge of exponential functions and logarithms
  • Basic grasp of plotting functions within specified ranges
NEXT STEPS
  • Learn how to define functions in Maple using the correct syntax
  • Explore the use of 'exp(...)' for exponential functions in Maple
  • Investigate common plotting errors in Maple and their solutions
  • Study the use of logarithmic functions and their properties in Maple
USEFUL FOR

Mathematicians, students learning computational mathematics, and anyone using Maple for plotting functions and solving equations.

MCooltA
Messages
8
Reaction score
0
I have to plot the function f(x) in maple, for -4 < x < 4.

I have got:

a:= 0.58
b:=0.61
c:=0.35

f(x) := e^(-a)(x^2) - (b)(x)*ln((x^2) + 1)
....2 + (x^2) + (c)*sin(x(Pi))

Maple interprets this correctly, but when i go to plot it, it comes up with 'Warning, unable to evaluate the function numeric values in the region'.

I tried to plot it, using:

plot(f(x), x = -4..4)

Can anyone see where I am going wrong? Or what I am missing out?
 
Physics news on Phys.org
you're using e as a vairable, you need to use exp(...)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 11 ·
Replies
11
Views
3K