#
# PYTHON • MyCompiler
#
# Estudo Cálculo Matricial
# https://[Log in to view URL]
# Estudo Cálculo Matricial
# 
# 2026 Outubro Ter, 20
# 2026 Outubro Sex, 30
#
# by 
# j
# 

import numpy as np

def betadirichlet(Z, max_terms=1000):
    
    beta = np.zeros_like(Z, dtype=complex)
    
    for k in range(max_terms):
        
        beta += ((-1)**k) / ((2*k + 1)**Z)
    
    return beta

def list():
    
    y = np.linspace(-2, 2, 5)
    x = np.linspace(-2, 2, 5)
    
    X, Y = np.meshgrid(x, y)
    
    Z = X + 1j * Y

    print(Z)
    
    B = betadirichlet(Z)

    print(B)

list()

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: