Draw Math Curve with Python Engine

Q

How to Draw a Math Curve with Python Engine?

✍: FYIcenter.com

A

If you want to draw a math curve quickly, you can use the Classic Jupyter Server provided on jupyter.org as show in this tutorial.

1. Follow the previous tutorial to start the Classic Jupyter Server at jupyter.org.

2. Click "File > New Notebook > Python 3" menu. You see a new notebook opened.

3. Click "+" icon to insert a new cell in notebook. And enter the following Python code to import "numpy" and "matplotlib" libraries.

import numpy as np
import matplotlib.pyplot as plt

4. Click "Run" icon to execute the code. You see no output.

5. Click "+" icon to insert another new cell in notebook. And enter the following Python code to draw a section of a Log curve.

x = np.arange(0.1, 5, 0.1)
y = np.log(x)
plt.plot(x, y)
plt.show()

6. Click "Run" icon to execute the code. You see an image of the Log curve generated.

Jupyter Notebook - Draw Math Curves
Jupyter Notebook - Draw Math Curves

 

Installing and Running Jupyter

Public Jupyter Server with Python Engine

Using Public Free Jupyter Server

⇑⇑ Jupyter Tutorials

2021-12-23, 670🔥, 0💬