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.159-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.159-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.159-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.159-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.159-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.159-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.159-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.159-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.159-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.159-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.159-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.159-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c77872d62cb166d604a44e6ddd67f72f4f42520e41e49a076ecf750465715c52
MD5 409ad67ad8cf1d78bdfadd48e8b94eb6
BLAKE2b-256 b8a0db973ad0b8ea28c4db31eec3081ac65dc29e7b7fd5026594a0fe3fcb60c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8d627a1422636955a402afdd11419f768a4a09ee5588cdfdc0122111e3a80875
MD5 ae635659620567c5fb604476d0be6ab2
BLAKE2b-256 51384e570ff46aebf93105701f4d602b0cd15d02a72a0fe0031d9a12d33bf17c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.159-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.159-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be55fd040aef2e00d91ca06a684f0743f172e2f3f972614066fe54c6dc35e381
MD5 4042e819a28eb8c6d67e4269553dca32
BLAKE2b-256 6ae377396e9e4dac1fbad05670021d9813fc300d900b44f0113c5afb2aecbfe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f1afd54590c096d08a4a39ef2b5172fda3b39c4bdc04dc084b8f448b5479fbb
MD5 498ed2aa1dd50c4ca7d6708a10112b36
BLAKE2b-256 2d5a708137e776dba13391e15f782154db8e598477d05a42e89716890698f957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6cdd91f88fc47fbca916ff7a23e9e1bad3dda3730f563ef09797b9c88277a96f
MD5 f2231a5f8b6b9bb8146a9b09b2329d81
BLAKE2b-256 acbdeb9acfea5284b50d43938e3c59aed986c9e5dce9fb8af6002144e3fff7a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5a74950cfd754bbe08162c6afa5a01464a41beed557490226dfe691c5da4ce3f
MD5 effc581d4362960593f4550a94ba087c
BLAKE2b-256 15cd882f08c02ecc846c58aa2b099e9c95bcdfa006b7afae55dae09625303f8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.159-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.159-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 59f9c8fc6722fefd910dedde4946fbecdc9f9ae32c9337ed8a74ec5a8215f5b8
MD5 0d4770964e7406600d3f7daabe020dfc
BLAKE2b-256 29bef03f02b8f1992ad8665a7d52b351a305c13bd524c2e19185d7076d451fa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 daaa3401ad392464175d852590bb9e644dc950c8fb143aaf023f21baab4a2b37
MD5 8f3ba963a3a52c2bfaa7735cb81103e5
BLAKE2b-256 2bdc2e1d6b8a107feb327f8f74134d62e86d84f2717b18b0a701b1caaa3b7bbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 45a628e2cd0722f218b9c8cb3ad247db5f3a8cc3c693436431e3573451fbca2a
MD5 d1a8493e7e2f4ac8570ae2d1ccf19b01
BLAKE2b-256 32992c1f0e964acaf70e9a07b3c2647fe9b4ef48548358ae94b9c3d3a0a33b24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e9946c76faecbfc70c6f0c3f345ba7a47ca7038809887d9e8b19c2450369ba32
MD5 7d3d8ca87f40f1d77d660c2e21a3f75c
BLAKE2b-256 a0340514522cf049bcf677ea2256d7e1fb7ebd7320daf8ce03e9c760daf34e49

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.159-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.159-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1de54360679531062116f7637f3801d62edbcbf088299c1a07c978411561fafe
MD5 780f309f691722c3546ad70ec51c1e17
BLAKE2b-256 9d36262245bc101cf26f935c002471c72f39d965260caf9c98d3e43ebaee4216

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84ef6c77e638a63cd10068ca697017ce8f6aba16a3e7965e102553c7448ffdcf
MD5 a9cabb3cfadbc37c4035c82beab86360
BLAKE2b-256 d1c59f1421f2a4129976a183b8d8bd6db8cc1eb41cadde525ff99c9498aac9ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 90914fb8c01a75af3d78ae604262eabaa78ddd35a2ef14a20082dc8d99f31300
MD5 cb513431d453979df91fc6abeb727a39
BLAKE2b-256 725e3cb35e158d15ebee12687fb2fbd28848f24a3d199c257aa7f08d6cf80c77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e2dc5626885ba6d3916d33f2b6469fed067e37fa4ff1f9f89a9937a99d619c60
MD5 cd860e3e44e56ec3c9e1d0d1c7962648
BLAKE2b-256 46ee50b8fc4c6222697ca8260139516f02b054d48e2de4a28703f8d3e7bbf72d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.159-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.159-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b2177e7529ff8a98ec35dc34a6f67e363c35285c1716d9dfa7b74f39b07d6c8
MD5 5dde62eca8a61bb31389dae961f1a7c2
BLAKE2b-256 964cc1f46205fd80ea6b86c3aeae983ded881fbd18bbcfdcfff5a330c278d6bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd146be172fafe3f45cf96cf3110fed9bdbb8c1b9576e30af1a086f3a23614d1
MD5 b0163d6e3c41599cdf102ee9affa2376
BLAKE2b-256 5e8fcf1882bd4745e82bbe3c9908f3d7b8c4ae2d6cd7244349dac2b4882bf7f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 89400ebca6561b535914d8a3afb7daddff1af03e8534572669d6e129e77be043
MD5 6e46dad0598a12538afce42f051bb9b3
BLAKE2b-256 c960e727e3b50c81e7b229bb322b25fc729a92d251f3c207f267c7b2c2183767

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.159-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.159-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d7e07f89de4322b9551f3e0da3b9534c53fa2fff083f2590a58692b6f24b7805
MD5 0c7c1c8aafe966781f40e3647cd791fb
BLAKE2b-256 6e52dcc83ca171355478197ef2951230c4279d6b84b9f4fb4313631da49fc8b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.159-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.159-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0927c0a03bf49afcc29c3f9b140d62296443dcc5594453c10862816a36fe975a
MD5 d750d2f291144e4c13a6c290e8e011ff
BLAKE2b-256 18d0ced2f6d2719cc3e5e53e13b580ab023c5a4bfda3e54429f9caae0321968d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.159-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f78add5679670b008d5b438a2f7a2d99084d3a9480dea9319ca9ce0d0e6a910b
MD5 536bb95be438eece8ec26ee31722f0ce
BLAKE2b-256 73cd981b4bcc1d51ca931520159979a4b737a50a41acf6bc9b6539d799a3fd80

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