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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.809-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.809-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.809-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a053cdacdaf5e3b8b4d6a8d72b6c55c7c53272e1dc11eee92ff96468fdc2345
MD5 fe3983d59d3983cd5f25f7afa969669e
BLAKE2b-256 4fa0642081c4f29382d60f9593c90e71ae6dd91a9f887e6778a988c070532f50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ab7df5f3795447f9818a00cbc292e782ffa02aa19ee1539181dc1b5c35302aba
MD5 a55459c275008a1d8fb3114e46d72519
BLAKE2b-256 c8606b13ea665fbfe2c20ae14f15e96f19e26d36732ddf917a8da6df552f0e19

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.809-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.809-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a03678702ee232da3f54ea7176dc6d497a6c57efb128c82edccd17877edb44ac
MD5 631bdcdc76eb88c12341178966bf3364
BLAKE2b-256 4709e50399c48a77f56ca47b952f27d788418e6f3abf4145127788eb4a728275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4e0ca8cd9cdce1c4f7e8e3e3f207bc882b21b4b79583468cf6960d4d4672372
MD5 3ceb2328fc5c3f82bdd1272e5506c14b
BLAKE2b-256 61f6212fac1f835cfa62d7dfdb63913c8e0ee7952f585951045b19e5d4d08cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8ebc86cb9eae3491ab7a1b9c2d9ec5359cc3bfb7f521217a6ff657d628c3f1d5
MD5 4ecbdd119b8d660afb185d927ce1bd94
BLAKE2b-256 ca65d715ba21b5c67871a1e633c23ccfc229036fdf239561291b8db545d2f064

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 dfe6f8c0be6d24762cf3b1e5c1753e13a98df4b7d5a7b18d61a95e25874c921a
MD5 fefbf1a8fa1e0aabbe1b48f648b0b604
BLAKE2b-256 9036e50148ce1ec5cb1757decb1afeee39e7c0102dc562aee6fb280bb29c8643

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.809-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.809-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ea9d374d48271d35488f768d1fe10b501e56039b31d818df1b60fbbebd0db4a
MD5 50b0aff741ae84cba37ead240a56d7d6
BLAKE2b-256 3c9e6352d8c5758d415c7aa032e716b13fe87c493347e039c8a97bad389d5011

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3c6cf49168fb57fdba45e323b2291b0ee4ff67b3c36d10c4607dd653c6c2c1d
MD5 dd6f56b02f83385f122ca0d3beabe468
BLAKE2b-256 26dac3e1962743fcc1dca7e88eed3dc93ba63eac9f6055f42e8a2aede9bf4104

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e3b6d2699df5c7257a28a73298344172426ad7e204ca1f0d30018d05c738242a
MD5 22a05d9264311978772a24b57570de38
BLAKE2b-256 37a7621309971572926cca76aaef55f71fc8f0121934af2fd9011a6445e29bae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4e9f3306125cdadf1ba20f1f60a051379542d2f0da3b8488f4a1e82f9765570b
MD5 be16ccdc0d973bbe0b626c7e11281918
BLAKE2b-256 b1b6eccd5e70f00388672fcdc434eb754a7992c7f6d0251881b68f2b794359d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.809-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.809-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 278d1c9099b67dcb8cb1cfc45df46f90ed32a314352c526b8fbd0a36d3482e68
MD5 508c2b91e9ca1c319ecb4c4830582b77
BLAKE2b-256 7b52f1d3388947d3ddefd8c638b09487c994156f35a351f595d572d6693a73e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 279ed06b8884b0ff4d035546d9c5713cf60b3469fc5ba275f4fe697e3316ad89
MD5 e7c3a228794f0a5d8f140ac9c2006942
BLAKE2b-256 e728dbc660f0205f6813b56105a55cd619ea1ab4ca8b5913a18c6c0f6f90769f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c9ec7ecea21b8723b9df7d2c399f1498b30b07f3456e54aa28f445a691f8e97e
MD5 5c2745f54c7daa59d513626db6010938
BLAKE2b-256 1ce29fd66147b69e21c3c62b0a0e07c8ad2c9b19fe52a84c50b013b2e8a2b75a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 31df7de7eee8eaca19adf2bd416035e93b552e7066895b2e6b376756ab5be7ac
MD5 bea38ac8bd514ad4243ac9228658bc54
BLAKE2b-256 441f63a125060029d1131cd4713602321f2aaca3945d09e9aa1142c2d0cc3a59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.809-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.809-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79440d3a3405746281556a0fb7ce9463316e787a4532c24abe76f7510a26dd35
MD5 364c5651f844290d9327a664770b0bf3
BLAKE2b-256 047fedcbcf161afe502f845f0394ec2cdedf331f52e857329eb59cdf4d701370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2705ed0e3ded381eac7b3a8ef64a70a4450f39c490f745af2aa34110f0784d18
MD5 cc65186cab768d1d591ac539ddc86124
BLAKE2b-256 d7583869812f8b082e04754d6a678c7c24df2bbde33ff53bdf20712515658958

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4a06bdd0aa196a3beb133a7f0444af0236cd9bfcfbd68cccf3161ceb2cf09009
MD5 da5ded6ab3e27da85ce7300a6139588b
BLAKE2b-256 37db6c9ccc9811b8b7825059315d4653ca679c46de11b12283c677ab1231ec1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.809-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.809-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 85926d32961c33d27dc7018597970530f4ff412355d49533d99155d555dd79e5
MD5 acf6c7d458c439c6e3bc3285081312ce
BLAKE2b-256 7b2b1124c73df7a7ee1bca2aab62f87d297663b1a195a27ef7a69386a8ea0f42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.809-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.809-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 155afa01a843f43899c615aec519ca3877a7c9dec90e97a7669102c16d0855bd
MD5 6a323942f45a372a45bc80bd4b16e826
BLAKE2b-256 8a23f521087749f535359ac9653def59453c0ab7c48de8ba4d14052885c081ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.809-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b460fc8c68d483f49bb2b2630d4ff50931bd64e23223d6565ed61f10433f93b
MD5 1d377286e17eb114096cbd3fbf2baed9
BLAKE2b-256 e2224b55feb0ebf4662f0c19848853384b996ea228f65871f98e444d84860819

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