Mathematica:How to solve the summation of numerical integration

In summary, the conversation discusses finding the minimum values for t1 and t2 when given t0=0 and t3=5, using both Excel Solver and Mathematica. The user shares their experience with using subscripts in Mathematica and suggests an alternative method for solving larger numbers.
  • #1
shafieza_garl
20
0
From the attachment. i would like to know how to find (t_1 and t_2)minimum if given t_0=0 and t_3=5.It seem like when using excel solver to find the minimum.anyone know how to do it with mathematica?
 

Attachments

  • Kerja_2.jpg
    Kerja_2.jpg
    8.4 KB · Views: 556
Physics news on Phys.org
  • #2
In my experience with MMA trying to use subscripts is often more trouble than it is worth.

What I would do is

t0 = 0; t3 = 5; NMinimize[{
Integrate[0.25`(E^(-0.015`*t)*(-4044.4444444444443`*E^(-0.015`*t1) + E^(0.015`*t)*(4044.4444444444443` - 66.6666666666667`*t) + 66.6666666666667`*E^(0.015`*t1)*t1))^2, {t, t0, t1}] +
Integrate[0.25`(E^(-0.015`*t)*(-4044.4444444444443`*E^(-0.015`*t2) + E^(0.015`*t)*(4044.4444444444443` - 66.6666666666667`*t) + 66.6666666666667`*E^(0.015`*t2)*t1))^2, {t, t1, t2}] +
Integrate[0.25`(E^(-0.015`*t)*(-4044.4444444444443`*E^(-0.015`*t3) + E^(0.015`*t)*(4044.4444444444443` - 66.6666666666667`*t) + 66.6666666666667`*E^(0.015`*t3)*t1))^2,{t, t2, t3}],
t0 <= t1 && t1 <= t2 && t2 <= t3}, {t1, t2}]

and it gives you an answer in a few seconds.
 
  • #3
thanks for da help.it really help me.but is there any other way to solve when n become a large number.like we change 3 into 10 and we want to find t1 until t9.
 

1. What is Mathematica?

Mathematica is a powerful software program used for mathematical computations, data analysis, and visualization. It is commonly used by scientists, researchers, and engineers in various fields such as physics, chemistry, and biology.

2. How do I solve the summation of numerical integration using Mathematica?

To solve the summation of numerical integration in Mathematica, you can use the built-in function NIntegrate. This function allows you to numerically evaluate an integral over a specified range of values. You can also use the Sum function to calculate the sum of a series of terms.

3. Can Mathematica handle complex mathematical expressions?

Yes, Mathematica is capable of handling complex mathematical expressions and computations. It can perform operations on complex numbers, solve equations with complex roots, and plot complex functions.

4. Is it possible to customize the integration and summation methods in Mathematica?

Yes, Mathematica allows you to specify the integration and summation methods to use for your calculations. You can choose from various methods, such as AdaptiveMonteCarlo or GaussKronrodRule, to achieve the desired accuracy and precision.

5. Can Mathematica solve indefinite integrals?

Yes, Mathematica can solve indefinite integrals and provide the antiderivative of a given function. You can use the Integrate function to find the antiderivative, and the result will be expressed in terms of elementary functions or special functions.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
13
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
399
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
Replies
3
Views
416
Replies
3
Views
773
Replies
2
Views
353
Back
Top