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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.439-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.439-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.439-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98679949de27cf6bb78b5acd86fad70e70ea35a522e5cd90893378430d3e53f4
MD5 8145267ee530f9ea6b03b561a410995c
BLAKE2b-256 8233b66a4d951d19b9df3cc015e91f6f847b4b090266fdff7ddcfefdbf26b321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ebe283bec24ec1088014b9dc446c1be78cfed1cd6f57be244b94ea6c272d6905
MD5 b97f5aa18210459719ad1b3329c3f742
BLAKE2b-256 7981bb512ef37d6931130eeeb79c2121f9ab784148213573fb234ebe00558831

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.439-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.439-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c28abc608238d106f05982ca45be444809fe831a71f609f90c4e511646bf6ac3
MD5 a05c68d9293843374547c20047b9d0ce
BLAKE2b-256 4a0fdd01d146cf7f705a6f87c01cad566d3839353de7166a37f0edf6d001a5b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 87d147e227c4349f46ae1e0b86a331d02fac7b3c7070ccc423838d4918ab9bd3
MD5 93348ebe0262596c6b8fa9ec5d8f4199
BLAKE2b-256 c66e4dd2e0b2603873b08541757bd1cd23c9f73f923ba6d483589377f7bb35d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eab134b918ec02bad95abbb339fe7f3f5719cd3a1cfc797b9b8192c129c48275
MD5 4594fa920bf61bf3d01a55b67fbc28e9
BLAKE2b-256 a2cb54bff5b571d3a93462ef514eea660d1d523f5a654d57eab9c322d908419a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a0047f71585ff1b586407db656d692bb5746c602172ed5f78be5f7c1b0c3597d
MD5 f158f2e73d22fd861469efdd1edf34f2
BLAKE2b-256 21e1afe9f8d9fca3d3d67a4931e0fe55c94b1ab3ecaa2cd436fd1fe9c91e6ef9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.439-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.439-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e7fd9e78c3ea6d909a57a4773bfca760a0ea656cfbba81c2319e70a4acb323a
MD5 08e44cce72c855e0f63c6b7fa95a0c86
BLAKE2b-256 81c434742cab02c2a5c6b3bb9a724f44ca9a451ef169de78947d4deb76caad07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a06a39c8709d7734deb73c83de5a62c08b472fc5acaedd054bd0a55d31845d8
MD5 34b8ac45de55ba4888385541b0b8b0d8
BLAKE2b-256 6e4bd54389c7f3e51ef69dbdce4dc1722ee964dbb6766365278b3b890bf837ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 65f315dbeedc6d1927f9e35618214dafd0642c03774a7e512a0e0d386719ca09
MD5 0c34d189f9b95f0786db70d91f47e146
BLAKE2b-256 b21a34f5d94250fdfd75cd6a158cfc7e0dfd76cbccb612170b333f19c1b32333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0a12b58f975c4713fe04c225bf3303d42e4f0dbf082b9ce9c7409d639e109086
MD5 ab395915659aa276a2f85c2db2aaad70
BLAKE2b-256 4dd74d228abf70a2c8fd2c98538db9056fbe196a1762a1ff8dc07f2e2c0767a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.439-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.439-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 975c66aac8726a621e39db9f78cae5f4032eeb6ec76e58bf7145956b1954c475
MD5 e41579aac435143a4520af55abaf2fbe
BLAKE2b-256 d8d41f97827f8a4a3a1f4db0addf2d5b648466a87ab7a4d4c7e35aea045b1ddc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1c082a6ca7ad7c926036ff3a05bed9e77acfd752f23e44beecfe53b3759dbf6
MD5 92d52e222d23a2fece8149c8677c6cdc
BLAKE2b-256 17ddb73733c55019e471892cc3c891f850a83f24827079fc5b11b9ded248af35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f4a782dfeba5b069ab7e20194c247f0ea73e7bb77b0051e9d4c9c74e9301932
MD5 d7754ae2e5a33a863019863699211af2
BLAKE2b-256 40f64829633497b47050b4fa8b6151087e5980e898f322e0694ee40245d88718

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 085e7f9fc4ed83a59ae0d0b62557bdc75e0a6fd0fd90a99a52b0da63c193b134
MD5 ae23212aca1dce765f11a0c2faf549bf
BLAKE2b-256 bc5e0ddf23a7c58d7139d27c2a2f4d5c1db0731e223a8814cc2c97e9356dbc62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.439-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.439-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 921451a192102d8bb58a76eb62641de415f4545e76d6fa46f5727a903ed5b6dd
MD5 5e8284918808886682ed174f42d2b142
BLAKE2b-256 5b8d0921473f5f0990c17d5c53263da6b120a4f3585786215793dffa8649deeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e03994b097f655bd49a37f91868c55489cd94ab0b81764657cd0c2df04a3b2f
MD5 4aaba68e9b838041d10558be88d78461
BLAKE2b-256 cb65b36d3de6bfd9a975b67472ead9a31ef2a6ddf764cd5f7b262de5bf28aef9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3322ee9ccae150ef36bd3efe893dceebe10870edde85a4a78afae2e2da408c61
MD5 e49fe18da09ed594cd3b9089a3517013
BLAKE2b-256 b6bdb95698298253db592b0aafe746a7803aa9b37de23ddbd48f70c1be2d0ef7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.439-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.439-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d6bc4ac4c3d38f7c002088816b3614db5a82871771e65918b3de529576943038
MD5 060de812f39943491c05360c8a742c9a
BLAKE2b-256 4dc6284f11c9a1d0293dad1c412647c3a5fb791f7054af426463ece59bbf55ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.439-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.439-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7295cee6c544e7ea516fc72e41396623f19e1f0a795a6a23bf267edaa2e98e6d
MD5 b0c30ec6a9649116560c3ba0e942b6d1
BLAKE2b-256 c6bad0c6e465aee99f1b1a83b011b7931a810c5c308d0e161a7bd9ec1e7767c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.439-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55033ad120e1bb26740f6b5cd314e670a0f17b7fb95e7ce63adee271709b2a86
MD5 db304e892a49bb9a99bda8ebc17d897f
BLAKE2b-256 c39f7cfd3bac66ed5a87234365e64e01c505955793053fc6cbe60af1d27b08e9

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