| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sympy/integrals/__pycache__/ |
Upload File : |
o
�8Vaը � @ sP d Z ddlmZ ddlmZmZmZ ddlmZm Z m
Z
mZ ddlm
Z
ddlmZmZmZmZ ddlmZmZmZ ddlmZ d:d
d d�dd
�Zdd� Zd:dd�Zd:dd�Zdd� Zdd� Zdd� Zdd� Z dd� Z! d;dd�Z"d d!� Z#d<d#d$�Z$d:d%d&�Z%d'd(� Z&d)d*� Z'd=d+d,�Z(d>d.d/�Z)d0d1� Z*d2d3� Z+d4d5� Z,d6d7� Z-d8d9� Z.d S )?a�
Module to implement integration of uni/bivariate polynomials over
2D Polytopes and uni/bi/trivariate polynomials over 3D Polytopes.
Uses evaluation techniques as described in Chin et al. (2015) [1].
References
===========
.. [1] Chin, Eric B., Jean B. Lasserre, and N. Sukumar. "Numerical integration
of homogeneous functions on convex and nonconvex polygons and polyhedra."
Computational Mechanics 56.6 (2015): 967-981
PDF link : http://dilbert.engr.ucdavis.edu/~suku/quadrature/cls-integration.pdf
� )�
cmp_to_key��x�y�z)�S�diff�Expr�Symbol)�_sympify)� Segment2D�Polygon�Point�Point2D)�LC�gcd_list�degree_list)� nsimplifyNF)� clockwise�
max_degreec s� |rt �t�rtt�j�ddi��ntd��t �t�r#t��}�j}n]t�d �dkr^t���t�d d �dkrZ��fdd�td��D �� �}t� ��� �fdd�td��D �}n&t d ���d }�d
d� }t||�}|du r�|du rytd��t
||||�S |dur�i }t |t�s�|dur�td
��t|d d �dkr�t
d||||�}ntd|||�}|du r�|S |D ]8�t
����|vr�jr�tj|tj<