Simple, high-school-leveled sequence library written in Python / 간단한 고등학교 수준 수열 라이브러리 (Python)

Overview

sequsequ.py

Simple, high-school-leveled sequence library written in Python
간단한 고등학교 수준 수열 라이브러리 (Python)

Copyright

© 2021 Sanha(sweetcorn1229), all rights reserved.

Docs

Get Started

from sequsequ import *

Sequ

constructor(f)

sequ-seq

seq = Sequ(lambda n: 2*n-1)
name type required
f function O

int/float at(n)

nth term / 제 n항

seq.at(n)
name type required
n int O

int/float sum(n)

sequ-sum

seq.sum(n)
name type required
n int O

int/float sum(m, n)

sequ-sum2

seq.sum(m, n)
name type required
m int O
n int O

int/float product(n)

sequ-prod

seq.product(n)
name type required
n int O

int/float product(m, n)

sequ-prod2

seq.product(m, n)
name type required
m int O
n int O

ArithmeticSequ extends Sequ

Arithmetic sequence / 등차 수열

constructor(a1, d)

sequ-arithmetic

aseq = ArithmeticSequ(a1, d);
name type required
a1 int/float O
d int/float O

int/float a1

The first term / 초항

aseq.a1

int/float d

Common difference / 공차

aseq.d

int/float limit()

sequ-limit

aseq.limit()

int/float series()

sequ-series

aseq.series()

GeometricSequ extends Sequ

Geometric sequence / 등비 수열

constructor(a1, r)

sequ-geometric

gseq = GeometricSequ(a1, r);
name type required
a1 int/float O
r int/float O

int/float a1

The first term / 초항

gseq.a1

int/float r

Common ratio / 공비

gseq.r

int/float/str limit()

sequ-limit

gseq.limit()

If the limit oscillates, it returns str "oscillation".

int/float/str series()

sequ-series

gseq.series()

If the series oscillates, it returns str "oscillation".

HarmonicSequ extends Sequ

Harmonic sequence / 조화 수열

constructor(a1, d)

sequ-harmonic

hseq = HarmonicSequ(a1, d);
name type required
a1 int/float O
d int/float O

int/float a1

The first term / 초항

hseq.a1

int/float d

Common difference / 공비

hseq.d

int/float limit()

sequ-limit

hseq.limit()
You might also like...
Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]

ormsgpack ormsgpack is a fast msgpack library for Python. It is a fork/reboot of orjson It serializes faster than msgpack-python and deserializes a bi

Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just about anything.

Retrying Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just

An Advanced Wordlist Library Written In Python For Acm114
An Advanced Wordlist Library Written In Python For Acm114

RBAPG -RBAPG is the abbreviation of "Rule Based Attack Password Generator". -This module is a wordlist generator module. -You can generate randomly

MiniJVM is simple java virtual machine written by python language, it can load class file from file system and run it.

MiniJVM MiniJVM是一款使用python编写的简易JVM,能够从本地加载class文件并且执行绝大多数指令。 支持的功能 1.从本地磁盘加载class并解析 2.支持绝大多数指令集的执行 3.支持虚拟机内存分区以及对象的创建 4.支持方法的调用和参数传递 5.支持静态代码块的初始化 不支

A simple 3D rigid body simulation written in python

pyRigidBody3d A simple 3D rigid body simulation written in python

A simple script that shows important photography times. written in python.
A simple script that shows important photography times. written in python.

A simple script that shows important photography times. written in python.

Nook is a simple, concatenative programming language written in Python.

Nook Nook is a simple, concatenative programming language written in Python. Status Nook is currently WIP. It lacks a lot of basic feature, and will n

a simple functional programming language compiler written in python

Functional Programming Language A compiler for my small functional language. Written in python with SLY lexer/parser generator library. Requirements p

A simple script written using symbolic python that takes as input a desired metric and automatically calculates and outputs the Christoffel Pseudo-Tensor, Riemann Curvature Tensor, Ricci Tensor, Scalar Curvature and the Kretschmann Scalar

A simple script written using symbolic python that takes as input a desired metric and automatically calculates and outputs the Christoffel Pseudo-Tensor, Riemann Curvature Tensor, Ricci Tensor, Scalar Curvature and the Kretschmann Scalar

Releases(v1.0.0)
Owner
Sanha
17-year-old Korean student. (Nicknames: AFlat, PerfeK, ...)
Sanha
A simple chatbot that I made for school project

Chatbot: Python A simple chatbot that I made for school Project. Tho this chatbot is dumb sometimes, but it's not too bad lol. Check it Out! FAQ How t

Prashant 2 Nov 13, 2021
a bit of my project :) and I use some of them for my school lesson or study for an exam! but some of them just for myself.

Handy Project a bit of my project :) and I use some of them for my school lesson or study for an exam! but some of them just for myself. the handy pro

amirkasra esmaeilian 13 Jul 5, 2021
A webapp for taking fast notes, designed for business, school, and collaboration with groups.

JOTS Journal of the Session A webapp for taking fast notes, designed for business, school, and collaboration with groups.

Zebadiah S. Taylor 2 Jun 10, 2022
Tracking development of the Class Schedule Siri Shortcut, an iOS program that checks the type of school day and tells you class scheduling.

Class Schedule Shortcut Tracking development of the Class Schedule Siri Shortcut, an iOS program that checks the type of school day and tells you clas

null 3 Jun 28, 2022
School helper, helps you at your pyllabus's.

pyllabus, helps you at your syllabus's... WARNING: It won't run without config.py! You should add config.py yourself, it will include your APIKEY. e.g

Ahmet Efe AKYAZI 6 Aug 7, 2022
Ontario-Covid19-Screening - An automated Covid-19 School Screening Tool for Ontario

Ontario-Covid19-Screening An automated Covid-19 School Screening Tool for Ontari

Rayan K 0 Feb 20, 2022
Ontario-Covid-Screening - An automated Covid-19 School Screening Tool for Ontario

Ontario-Covid19-Screening An automated Covid-19 School Screening Tool for Ontari

Rayan K 0 Feb 20, 2022
Pulse sequence builder and compiler for q1asm

q1pulse Pulse sequence builder and compiler for q1asm. q1pulse is a simple library to compile pulse sequence to q1asm, the assembly language of Qblox

Sander de Snoo 3 Dec 14, 2022
Sequence clustering and database creation using mmseqs, from local fasta files

Sequence clustering and database creation using mmseqs, from local fasta files

Ana Julia Velez Rueda 3 Oct 27, 2022
These are the scripts used for the project of ‘Assembly of a pan-genome for global cattle reveals missing sequence and novel structural variation, providing new insights into their diversity and evolution history’

script-SV-genotyping These are the scripts used for the project of ‘Assembly of a pan-genome for global cattle reveals missing sequence and novel stru

null 2 Aug 26, 2022