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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.308-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.308-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.308-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ee5e22c0ff126acac7df1d251b251eebe28bae9161e11e6d1654961da0b465c
MD5 3afdec607714b686c04d0debcb072f2c
BLAKE2b-256 e509571665fa12a55bb3085dd48aaee0f3500fcd342492c9da6f8d33f1b1e6af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7f98c8182ae2ca9edf7dec586312f740c7948b8966f86ef213487aed2ce6e538
MD5 2a88d7d02c2010c8c8433970cbd7a303
BLAKE2b-256 a948a3de658108801cca5593a304ef7d21f032e576117143e29c3e25b405f2a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.308-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.308-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d91f77afd6b74ddb9f0171141db30dda77f96718d9ff0cf06af5af058974ff6
MD5 ad90b34605473221707743d49a9313d2
BLAKE2b-256 fefbabd91c97810c95cb4ea77a6efe53cecb81c0b9551da083094c07f70aeee8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d49dee5505e1b274d9fffbcf29d3e3f797594958b41badef4cf0a74929733c97
MD5 41a93d79b647dd5feff5908fbbffaf20
BLAKE2b-256 89d5d729eab8121f87e7b21253c9013eacbe39d79ef27a6ba7efe5230bce8d3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 966442808d250517ba959df3a0cd6bc043b229d9db911e0a68c1447da830baf2
MD5 dfef33d1c868fff1015793822e43ef00
BLAKE2b-256 0eb6b6fb7b7dc746863ed5be85fba7cba99221a04c98bccad9d191c82b0d7222

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 68ea7a0ea3662377a6add2e7124fb65d1caf774468d7d3aecf6b40e46c97be31
MD5 b1ab426dc85928e16935412cf4ff478f
BLAKE2b-256 9f73a38d239dd1f7d75432bd5352abd1e4e0a47db917469b78d6e3a0287b486f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.308-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.308-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f4663a07a01503d3408beab3be017a30fc29da227440a0b3cf1604d5d38a814
MD5 c6ac4385d7f551b3e62b8177351bea60
BLAKE2b-256 cd41873c3e4eadbf1a62cc9f653d63d1bfceb563436f126713dec9c4bf6c16fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc153c1517179a74ab0bc268039673e446db39cb7dfd3853c2c128c3b29eda79
MD5 9d50d15567e9ccb6aa6c8d41b3d980f7
BLAKE2b-256 8d6b4431d209b761bcc2ec26a3f489160d021833be2671a47881466ed2fc31d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4ca729a5449d23a0dafecb297998b972125be9b74aafe3ab50e221d6e4b1236a
MD5 6f3de541a6c23a3798016cbb41382d50
BLAKE2b-256 156bd6fb6ad7bbe83d8776b31e45efb2a6098128b24ded26fab423026415f0e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e7a5547367ce4bfc9f9c70151c3a0f2a5fcb420641c6eba9578772d0ef06f195
MD5 74a837c62a61e81acf560f2869a3ad5d
BLAKE2b-256 e0e3af7c569d24efe08ee6a186421355e441fdceb7689d8df9a590bc73992569

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.308-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.308-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 373f1be374c63030f8b12d7af323888dbdf80a94c84349683dce51271d5c7492
MD5 fd69dea2e3de9c44714599224d53b140
BLAKE2b-256 38b3ba8fa354d5e6131e4448a988564bf2941ef9fc87e33365ae7821b557c6b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88da04fcec74e7be1361e0b7b5b48ae84ae956588f9266e96fc834e48ef67924
MD5 21dec044bf37908ccacf4c07182b6a1d
BLAKE2b-256 54f40365eee82d6d6c538a945dceba895de95b8789545548812750beb2a7f8d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 faba39700c736d2410f9d7761e0a1873ff68066c73a757d29e24091fbe3f029d
MD5 8ddce7b596dbc573f0c089162d5dbde2
BLAKE2b-256 e128e7599ec574bae6e0510a0c39512cda5e9798a5603c57168d4225d7f71593

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fdc20b5bfcbe1bb198de74c874638e36237ad7ff03004acae013af7b297d7def
MD5 426fb74c60018840c69f8edbbbe0562f
BLAKE2b-256 464e93fa4d2c7a3254598aa30561bf6aa2f1d44b4fac3777392b3cd415b0225a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.308-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.308-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c526e96ffd4832c51745f7d7870b79dc2a3df6cc1a6aef67a835d5cc7394385
MD5 b0ca136df28daf50a3ca4cef6324e912
BLAKE2b-256 1927fa00467043b732188928e56a5840439856b0e8384687ee52237a3a6a5455

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc8c17be4c7331b0f02058617a164572e6a568270277ae5600042885ac7d56c6
MD5 17a007fdb7a96a4356a66d8c22aa1e28
BLAKE2b-256 0f88a9f5d3b74f93a27955f6fb8111f04562d242430095ccfd95dae5e32d177b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5f57db6ce473479463db33878d15085db36f63f96cd8121d7533d2912d5bc81e
MD5 65fb146502c5a317666c3ab495791d8e
BLAKE2b-256 41442188d02303ec2a60b5bd9e3d2476fb943d6cedfc2b3e257418ee99575808

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.308-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.308-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 72d7989d47cb93c92337d34d648460006ea2109184a6cf60e56b535c6668ee19
MD5 20982c0a6fbc406f6c06df083bee5dc4
BLAKE2b-256 568590d02a67d521bc515005bc835d0bd2900a9d427f18be414e307aec9e6dac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.308-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.308-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f2920b407a1f339347abfbd093086586e2e9f58a8f2ae6885fd7fe6ead246fd
MD5 e22f3b6464c9cd0faccefa49331c58a7
BLAKE2b-256 9fd9b07fec2299521efc7c562b345e48fba2d873266e17dfab5865d982e47bd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.308-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3bc831cf73572ba4a36f7156f8b82de2793f26b407ed269181f27a3e06c2bac
MD5 5d7bd086203ebcad1a3a4e9a0b118e2b
BLAKE2b-256 97f9d8ad61fa781fc5f7ce2c9c9a2735da92bfbeba03cbb8f174aa1e192498b5

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