Why Does Maple Return Symbolic Answers When Integrating Functions?

In summary, the conversation is about trying to integrate a function using Maple, but it returns a symbolic answer instead of a numerical value. The function being integrated involves a constant and a variable, and there is a suggestion to use the "subs" command and the "evalf" function to get a numerical result.
  • #1
kubekas
10
0
Hi every body

I am trying to intergrate the following function using Maple:

j2out(x):=c2*x*exp(int((s-vout(s))/s/vout(s),s=0.0015..x));

where vout(s)=0.07595560773650. C2 is constant

but when I do, it returns a symbolic answers i.e Maple just returns the original expression without doing any thing even if I try evalf.

Any suggestion out there?
Amos
 
Physics news on Phys.org
  • #2
c2*x*exp(int((s-vout(s))/s/vout(s),s=0.0015..x));

[tex]
{\it c2}\,x{{\rm e}^{\int _{ 0.0015}^{x}\!{\frac {s-{\it vout} \left(
s \right) }{s{\it vout} \left( s \right) }}{ds}}}
[/tex]

subs({vout(s)=0.07595560773650, c2=2.3456, x=1.92},%);

[tex]
4.503552\,{{\rm e}^{\int _{ 0.0015}^{ 1.92}\! 13.16558487\,{\frac {s-
0.07595560773650}{s}}{ds}}}
[/tex]

evalf(%);

[tex]
3.279676846\;10^8
[/tex]
 
  • #3


Hello Amos,

Thank you for reaching out for help with integrating your function using Maple. It is important to note that Maple is a powerful tool for symbolic computation, but it may require some additional input from the user in order to provide a numerical result. Here are a few suggestions that may help you get the desired result:

1. Check your syntax: Make sure that all of the variables in your function are defined and that you are using the correct operators (+, -, *, /, etc.). One small error can cause Maple to return a symbolic answer instead of a numerical one.

2. Use the "evalf" command: As you mentioned, using the "evalf" command can help Maple to provide a numerical result. However, it is important to note that it may not always work depending on the complexity of your function.

3. Specify the value of your constant: In your function, you have a constant (c2) that is not defined. Maple may not be able to provide a numerical result if this constant is not specified. Try defining c2 with a numerical value and see if that helps.

4. Use the "numeric" command: If all else fails, you can try using the "numeric" command before evaluating your function. This will force Maple to use numerical methods to evaluate your function and may provide a result.

I hope these suggestions help you to get the desired result. Good luck with your integration!
 

What is Maple and how is it used for integrating functions?

Maple is a mathematical software program that allows users to perform various mathematical operations, including integrating functions. It uses algorithms and numerical methods to find the antiderivative of a given function, allowing for the calculation of definite and indefinite integrals.

What are some common errors that may occur while integrating a function with Maple?

Some common errors that may occur while integrating a function with Maple include syntax errors, improper use of parentheses, and division by zero. It is important to double check the input and make sure the function is correctly written before attempting to integrate.

Can Maple integrate all types of functions?

No, Maple may not be able to integrate all types of functions. It is limited by its algorithms and numerical methods, and may struggle with complicated or undefined functions. It is always best to check the Maple documentation or consult with a mathematics expert for more complex functions.

Are there any tips for improving the accuracy of integration with Maple?

Yes, there are a few tips that can help improve the accuracy of integration with Maple. First, it is important to use appropriate syntax and parentheses. Additionally, using smaller intervals and increasing the number of subintervals can also improve accuracy. It is also helpful to check the result with a different integration method or by hand calculation to verify the accuracy.

Can Maple also compute multiple integrals?

Yes, Maple can also compute multiple integrals, including double and triple integrals. It uses similar algorithms and numerical methods as for single integrals, but the input and output may look slightly different. It is important to follow the correct syntax and consult the documentation for multiple integration with Maple.

Back
Top