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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.623-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.623-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.623-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e30052176a2622dabc0a2c55afba81b0dddb783e3c6a309fcb82de1d72385255
MD5 b681e1977955061bdf41c955c53496d5
BLAKE2b-256 3f539f9b0e86c797f89e32d3a04498d2f8ab407a4b65da7f273eb9ada1992d0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dcfe1e13d6fafcae92e740287e944c4bbefad13403ac26d17c59680db69f6258
MD5 11c3e45d346a797ec47174525833ff9d
BLAKE2b-256 e8fbcc310af03b53d1d4e0194410ba305db41c6882fa722a394ba606c9f2f222

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.623-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.623-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d16acc20ec3b2fd75a8e73f732d87c2ea421a4991e3dc6de5047d547dc772576
MD5 0a9d731cf15f3b7adf2aa84f46ae782f
BLAKE2b-256 ed56d68fa52a067956fadb6db25bb0106f6b007498bfc0997e5572e633c68ec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b36011977488eee45e235ebaf130d5bae703f2af330c53f25b6dbefb27c9ec9
MD5 7aead6294a886c23e275138362a218cb
BLAKE2b-256 2e000be4f2d5d31583f4fa222307cac946dfc889106c28076b8f3ea33446dbe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f457a1feb66a323b81a3f1efe2b0d0ee04dce309c957d1300b487a731af548fc
MD5 a74527e07814152e748a79fd3176b355
BLAKE2b-256 49be4f8eced1cfa991300ca28e9aa31d1bba08d8855277863fda9db113e8e9e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 048eb6a565afb7c0f9370463adf379b35006797dba4f0754eafc43679d7b8567
MD5 14c42f18f9133e098ab51132e5b8a974
BLAKE2b-256 a92f14b694999c432c3c2b37ae629479d2f62992a060aa8a924bc344e39cbdda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.623-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.623-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90dc3e2c370af05a7478227b3d8f78944639467bfbc1f663a249bb8070b8fca2
MD5 ed251ed461f4804195473d8063b676fe
BLAKE2b-256 28c3ba0a575e1bc9add433317c01079e04d4f225a5fd08acf05af871083496ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28d832cb7e46af7381eb4ed7a1f01e3ebe89b5900d1e6ddbf65cfbc338176beb
MD5 85d6a95c352af06e614d0ff8e4b4002e
BLAKE2b-256 34ab26b6d97b70809fa16eee3f12dfbf64a54d3345c58aa97035f0c1ed2c57c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dce2d4bfe018fcf603a65e4875aa08c18352fa72278144cd548556fcebdc5f31
MD5 ff9ab9a8da8e5cb8f0826a5db482c42e
BLAKE2b-256 f63c782723ccd4ae00b05e9a88303bdd28d15bfea28a2b00ffb01521d61daf71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 14aa472991ef98c2f9c7f1bf3e0c7a1aba26d1b873e649229cfa31ee02b78e9d
MD5 a2ffbab5bd565c03d922655438add454
BLAKE2b-256 ad54936ccbe5250c772f57b8e14b450b58446c367ec18354e17442d3917ca62a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.623-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.623-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96cb27798151fc2bd8ee1576939272fce36b81b4c4a484edee933d5e1a9e4e23
MD5 43ccc17304d610b2831fc4b6200bc4a1
BLAKE2b-256 3f014ebe96465d899216f9126621f7db0d9973218a5a37613c088dfb45d3d75f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc0679050e3462ab0148c503ef45857dca063657dc5fe3cd9114e131d00b58df
MD5 38a210ac0d5f90c46008493cdc4b9f87
BLAKE2b-256 8a9be8deeb069c099f75106b895402718b163c44b0c2d17a0e4df6179215c111

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 07f907df905fab49a8050355e4ad344638b197c0c0de5408d46bcb9d009e3c95
MD5 ee177dc72f659fb1323c8b088830b533
BLAKE2b-256 aa3ee7be73d0aed407e20b83e41b1015a7f21de2212a77271f0d517773bbbddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2f04695a72f4e5f5754287505c5b28677b3b3a8d1c2ae5c277fd452fb74fe8db
MD5 c44e2ce0d71f4403331078662d2c600c
BLAKE2b-256 9d808421e127fab15d9064bab4a9ec661c539fba42917790a57e47866070e48e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.623-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.623-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f27f19bb4af8e4cde7709228ca8f2c507301400fedd90c09956e16ec15ade281
MD5 5c5d2a28099ee6df28094fa39b611ea8
BLAKE2b-256 14238f41dc0e6d4500af369a8d5c499488f261ed572a57ec9055dfb3820809dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47e2d208ccccf26b6c404075c361968b6a1617c96cb9d0a08c91956f0e221d35
MD5 4b4d884b233ae3e74c06233e8f3af67a
BLAKE2b-256 7318ac3297a331ba500a1b9ff47c84534fda382d07e6e868b2f91b8647510b58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f36b19d5eec1f2b0e5ed9d31e12a8c41a7729574c303dfa81a90deccda652f60
MD5 e0e9f8c0e1f86740904f00d76daaafbc
BLAKE2b-256 3af4487d5d7a61810ba0a39b894fd4ce698b8b152fc732221812011b58e3fa82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.623-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.623-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3420afe9b58337340c5190ba21c27594e1db5895fbb8fa825c7edf7003aec7d9
MD5 af7006878be841d571cd08f941ab0f44
BLAKE2b-256 01fc1c6073c33e4c92dfa93a7b4160086033090ec50e667c8ef964c5d5bbe564

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.623-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.623-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6ef2b53d4fc35c9016df797da8d16659b35a7b7beabe76546085da6955954ab
MD5 99c94c2c2d93352e80c28753bde44e79
BLAKE2b-256 56420c11945eb84dc014304173f8dd7c732a4e18701eb653e7ce289e8d798dac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.623-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7e59b8b2c26aad962fe14863ff40733a41d332d460bef4b7361b5051f6b75ff
MD5 e6184c899fd0f793531ec116d9f71695
BLAKE2b-256 14a450b3810518c10ec22e3ce1787a7e3eebd9605bb17e51bcc80747a2d5d2e5

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