elmo
Montreal, Quebec, Canada
 
 
it's elmo but earl
현재 오프라인
calculations of an integral
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 29 14:09:43 2023

@author: your mom
"""

# step 1 import necessary librairies

import numpy as np
import matplotlib.pyplot as plt

# step 2 define starting variables

xi = 0
xf = 2
npts = 21
x = np.linspace(xi,xf,npts)
f = np.zeros(npts)
g = np.zeros(npts)

# step 3 define functions that will be later plotted

for i in range(len(x)):
f = x **3
if x <=-1:
g = 3 * x + 2
elif x < 1:
g = f
else:
g = 3 * x - 2

# step 4 graph the functions previously defined

plt.plot(x,f, label = 'f(x)')
plt.plot(x,g, label = 'g(x)')
plt.legend()
plt.title("There is no title idiot")
plt.grid(True, "both", 'both')

# step 5 calculate the integral of the function g(x) between x = 0 and x = 2

A1=0
dx = x[1] - x[0]
for j in range(0,npts-1):
A1= A1 + ( g[j]+g[j+1] )/2*dx
print(f"L'intégrale de la fonction g(x) entre x=0 et x=2 est {A1:.4f}")
아이템 전시대
매우 희귀한 도전 과제 전시대
최근 활동
기록상 67시간
마지막으로 플레이한 날짜: 2023년 7월 4일
기록상 40시간
마지막으로 플레이한 날짜: 2023년 7월 4일
기록상 5.2시간
마지막으로 플레이한 날짜: 2023년 5월 23일
Adolace 2024년 8월 31일 오전 11시 46분 
cool game
76561199260463324 2023년 7월 24일 오전 10시 02분 
lets go party in csgo
76561199041963229 거래 차단됨 2021년 11월 22일 오후 1시 50분 
Im interested to buy your item on steam market, but i need to talk about prices, add me if u can.
76561198109744297 거래 차단됨 2021년 7월 25일 오후 8시 40분 
hello man. add me if you want to sell your knife.
director 2021년 7월 16일 오전 12시 05분 
send me a friend request, I need to talk to you
Jotus 2021년 6월 4일 오전 4시 54분 
hi mate, can you add me? just for a quick chat