Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.119-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.119-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.119-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.119-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.119-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.119-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.119-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.119-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.119-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.119-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.119-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.119-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.119-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.119-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.119-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.119-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.119-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.119-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.119-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.119-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.119-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c71a92448bd12b705c416bd4ba2dd9d41840e0805488793040ed5743da334f4a
MD5 69558ced91003223ac69cb803a7f2860
BLAKE2b-256 446c535c2cbb7a46f0a837eb264a569a61f060eed6afcd3710fc06132f6d22d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 96610d80d43aa56b9c935e6d07c8987bb2a8f4667008b669934bbb7fefbdadc7
MD5 ff84e231d91684f44a68ab899d5c1a42
BLAKE2b-256 db6238ca25678bfeccbcbcff85a3b8e1d651500c3a35d50d1bb37f924ccb911e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 68ee0f283fbb78b3b7ae897f1e914b847dd0dd9b8b5db47df814aa7f271b6bbf
MD5 7f5ee6145eecad6b1405a3acd0c66f9f
BLAKE2b-256 c08d97902f325e20cb46c43cadd1bb06be014724fa1f057b418f85bd793fed9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 362bd5dbb2ce259f3904717269e40b6bf5b704f59af49858dfd3939d414be82b
MD5 7e2132dd6418e1a3b01cd744f90cdb34
BLAKE2b-256 de3442e55b154dc7c9b2e45c5116ea04efa65bc7ed121b73567cb27232050a17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b17b1b0957069e417f28e7a7c782aa464672e715b71876aaeb101747b2a9ec29
MD5 5b04a3ab5a7e1441b0b229f00c2a39ac
BLAKE2b-256 9ac69a0d53a8afdcc8947165fb835a6ee5dab8c509e0881afb051f4460228937

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9ed9c3279defdfb6810be676d84bb5cc2c1548f8c6d2a8267fb4b9d9a5fb42fb
MD5 74b664d929c719562fbe87d75b2499a2
BLAKE2b-256 266f41c0c560d65d20905c6ebf0b83034d83b3d5aae2a9e42b8d36b2e702fe7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efbaf8df4b44cfa43f5ec781601619628307ff83b56cdcbfbdeb902b332b136b
MD5 4de4d473f05fd4e7f8a34607e0b87d1a
BLAKE2b-256 9f123a07d1c6c856bc526036b46bb9b945023595cbbc24de9d7f834c4afc07c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25e5ea343f927b644eea9fc78db8cf0a13c634a2652a5a306bd3f5af37b4da9a
MD5 4c3da28914d2e0a7640df0f051ceeaf0
BLAKE2b-256 1adb0ee803803128bd151bf9ea5af7021843a2b17401c59298dbd9f83454503a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6d42b178c107af8ee1f88e4765e28859a40ade305a395e519b8a3a3b462d69c4
MD5 693f732e2f483806f9316868138a55ca
BLAKE2b-256 f5d000f45377a64c10ae126685786eee515cd85a41ec6b98519104d404dd3d3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f64df00fce8892ffcc61857c7af27ced17e76fffbec919293eb94b2664a92bf8
MD5 cc4dc5ba4de683bc7f9cfb066d1c2474
BLAKE2b-256 6f6ec8adaa76ca5280a4bf681aeffea29316d91e025a79510b45114bf8686224

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 269c7681a40c63575ce421009eee5cf17e24080860ad71a1790458e5321ca507
MD5 b68d98d663e144d24c96960d23ebe97f
BLAKE2b-256 a5fd72eec54db08959d0cd9f67610d1c4e5a90fdddf071282f9aec945a8924e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 44f730cdab3dda0483d4e1ed60ee1bbd5124a35780030d58b32beb883af6e124
MD5 e9d66fc4781830f80ed967f279b09d7a
BLAKE2b-256 4762de52e24cd1fb4a7703bbb6ee4a891807225f4e5cf4ea4cb3c8cca75894f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0b6c65a132a8a4a80fd0618f612895f425629eb29923ce5b1bfb05abc6d6796d
MD5 35dba249da5c3b40162e52d1ab582072
BLAKE2b-256 3f8dd350a572677ccd4fa10340837d92cc74e67f9498e779a49a1fb5bbd8a0d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 78408451847dfe76cebb00d7b66531e80033e3dee19607aae23ca680335349d7
MD5 9c7fcd76aa12ae794e7ba96b56bee6bf
BLAKE2b-256 7fda2420adad893498bda488feaae926d4ad87f78cbdeb871a0df83e9c87fe7c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a746d5423ed58748aa0e49a8a3fdecd2271e7f1fe920b799642380322f3a5a4
MD5 f1f635bc91b0defdff7158742db3e9ec
BLAKE2b-256 03b99089df1c18a8aead099f6bf9699842505a26897edae64f49c2dd41add7c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa01e53ade1901c319a2304ae22fc5624468d596b98b701fd66f2c5ca0102f32
MD5 4fae7459e6d7403dbbff47c9a28425ec
BLAKE2b-256 d678d170ee85ea215c9bdc406e33ab4096287c47030b9ed33228552a385797c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2e5eb5ccc2e34215068cbf941ab808179d331f0135e8cada8d57f32e22ddfca0
MD5 16db0e150d8a1503bbee346c4ee1e51c
BLAKE2b-256 dc643020572135ecb1191d34260a3366e5a6e188452df2c15c40a363d447ee5f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.119-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.119-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 444a97e67bfe45c3621ed6fa9cdecc11b487bd7c5d62d1b6fe3b57cc2c7ed285
MD5 a3e2505ce631be175d9ef095bdf53867
BLAKE2b-256 1f1ffd2553c4d61e4d1efb536503bcaa6b850c8bff705834de414a646ce9b8a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e778bdaae56070a270b2645260022e39e381189c3e9df20af80b53c374d06e82
MD5 820a1f9af8921ab0d0d406b8d5f57c40
BLAKE2b-256 0c7b99c1ec45202f2577fe64cc10bc5d83d9b6d03e6d1c760d8244a499617b5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.119-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.119-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b2cc0412eabfacfcb2f9466735ce57e4561a0daf28e193d56cb4e35910da67e
MD5 f3e83986c31b779b8f92a91704b60c45
BLAKE2b-256 f9a94bf36dd5f87a0a8b78d5a0d23a39c99ae38fb8007f15858689d46d52166d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page