# algebra

##### 测试一个点是否近似在由另外两个点形成的线段上(Test if a point is approximately on a line segment formed by two other points)

2021-09-22 05:17:01    分类:技术分享    javascript   linear-algebra   algebra

##### python中的代数表达式(algebraic expressions in python)

2021-09-12 10:53:56    分类:技术分享    python   plot   algebra

##### How can I construct a matrix given a generator for this cyclic group?

Let F[q^p] be a finite cyclic set of polynomials, where q is a prime number and p is an integer greater than 0. Each element in F[q^p] will be a polynomial up to degree (p-1) under (mod q). Ex: F[2^2]={0,1,x,1+x} Ex: F[3^4]={0,1,2,0+x,1+x,2+x,0+x^2,1+x^2,2+x^2,x+x^2,1+x+x^2,2+x+x^2,2x+x^2,1+2x+x^2,2+2x+x^2,0+2x^2,1+2x^2,2+2x^2,x+2x^2,1+x+2x^2,2+x+2x^2,2x+2x^2,1+2x+2x^2,2+2x+2x^2,...,2+2x+2x^2+2x^3} Thus, there will be q^p elements in F[q,p]. Assume that we have a generator theta, where theta^k, where k=0,1,2,...,q^p-1, will generate the entire finite cyclic set F[q^p]. Let's examine the more

2021-09-03 09:05:52    分类:问答    r   for-loop   matrix   generator   algebra

##### algebraic expressions in python

I'm working with some relatively simple algebraic expressions in python and wondered if there's a better way of plotting algebraic expressions than what I'm currently doing: I have the equation of a notch filter (below image - left side from a book; the right side graph is the fig generated by my code), and so far my code works though is crude. Is there a better way of plotting the magnitude? As shown the constants are; R = 50.0, C = 470e-12, L = 54e-6, and the desired frequency range is from 0 to 2MHz. import matplotlib.pyplot as plt import numpy as np import math R = 50.0 C = 470e-12 L = 54e

2021-09-02 18:15:56    分类:问答    python   plot   algebra

##### Element by element tensor multiplication in python

I am trying to solve a problem in computational algebra using python. Basically given two sets, say A={a,b} and B={e}, I need to compute the element by element tensor products and get a final set say C={a\tensor{e},b\tensor{e}} containing these products of elements. I can do an element by element multiplication using arrays with numbers but I can't do an element by element tensor multiplication of letters instead of numbers.

2021-09-01 10:16:34    分类:问答    math   set   algebra   tensor

##### 计算多项式系数(Calculate multinomial coefficient)

2021-08-30 13:12:40    分类:技术分享    c++   combinatorics   algebra

##### Problems with formula to output a triangle waveform in Java

I got my wave file creator working and I split it into three classes, I also made a sinewave generator that inherits from an abstract class called waveform and I can export 8 and 16 bit mono or sterio sine waves. I am trying to make a class called TriangleWave Generator to output a triangle wave tone, but I can't get the algebra from https://en.wikipedia.org/wiki/Triangle_wave#, the first formula, to work. It will only export the highest harmonic stated and not blend them together with the fundamental Sample length: length in seconds point: individual sample amp limit: the highest position

2021-08-30 11:13:02    分类:问答    java   algebra   waveform

##### 自学线性代数的书籍和资源[关闭](Books & resources to teach myself Linear Algebra [closed])

2021-08-12 09:58:52    分类:技术分享    math   linear-algebra   algebra

##### 寻找两条线的交点(Finding the intersection of two lines)

2021-08-11 18:09:16    分类:技术分享    ruby   intersection   algebra

##### Calculating the boundary of irregular shape in Cartesian Coordinate 2D

I'm looking for a solution to calculate the boundary of an irregular shape. Lats take a look at Square example: if i have Minimum x and y and Maximum x and y like: MaxX = 5 MinX = 1 MaxY = 5 MinY = 1 in python language: #Python Code X = {"Min":1, "Max":5} # is Dictionary of x Axis Y = {"Min":1, "Max":5} # is Dictionary of y Axis I can check if any coordinate is in the square boundary or not, simpley by comparing the axis against min and max of square boundary. now let's look at these 2 irregular example: Now how can i calculate the boundary and coordinates of the shape? i do have the point

2021-08-01 21:04:52    分类:问答    python   math   algebra   calculus