**Table of Contents**SHOW

In calculus, there are three types of complete elliptic integrals. Matlab® provides different commands for these three types of elliptic integrals.

YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!

Here, we explain these three types of elliptic integral calculations in Matlab® with different commands. All the codes below are executed in the Matlab® command window that you can try them in your own Matlab® software.

## How To Calculate Complete Elliptic Integrals In MatLab®?

There are three types of commands to calculate complete elliptic integrals;

- The first type: ‘ellipticK()’,
- The second type: ‘ellipticE()’,
- The third type: ‘ellipticPi()’.

### Calculation Of The First Type Of Complete Elliptic Integral In MatLab®

```
>> ellipticK(10)
ans =
0.5099 - 0.8153i
```

As you see in the example above, the calculation of the first type complete elliptic integral is very easy. You just need to type the required number inside the brackets to see the result.

### Calculation Of The Second Type Of Complete Elliptic Integral In MatLab®

```
>> ellipticE(10)
ans =
0.2516 + 2.6783i
>>
```

The use of this command is the same as the previous one. Hit the ‘Enter’ key to see the answer to the second type of complete elliptic integral.

### Calculation Of The Third Type Of Complete Elliptic Integral In MatLab®

```
>> ellipticPi(10,5)
ans =
-0.0413 - 0.3272i
>>
```

In this command, you need to write two elements inside the brackets. You can see the result in the Matlab® command window if you execute the code.

## Conclusion

As you see above, the calculation of the three types of complete elliptic integrals is very simple with the corresponding commands in Matlab®.

Do not forget to leave your comments and questions below about the calculation of the three types of complete elliptic integrals in Matlab® below.

If you want further coding examples about the calculation of the three types of complete elliptic integrals in Matlab®, inform us in the comments.

This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®

Your precious feedbacks are very important to us.

## Leave a Reply