This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
from math import sqrt | |
A, L, I, E = symbols('A L I E') | |
total_members = 3 | |
k = [] | |
a = [] | |
T = [] | |
K = zeros(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matchpy import * | |
a, b, c, d, m, n, p = map(Symbol, 'abcdmnp') | |
var = Symbol('var') | |
one = Symbol('1') # One | |
zero = Symbol('0') # Zero | |
Mul = Operation.new('*', Arity.variadic, 'Mul', associative=True, one_identity=True, infix=True) | |
Plus = Operation.new('+', Arity.variadic, 'Plus', associative=True, one_identity=True, infix=True) | |
Div = Operation.new('/', Arity.variadic, 'Div', associative=False, infix=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
''' | |
Rubi integrator for: | |
1 Algebric: | |
1.1 Linear Products: | |
1.1.1 (a + b*x)**m | |
1.1.2 (a + b*x)**m * (c + d*x)**n |