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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.673-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.673-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.673-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 00aff02764c67fe711cec9bcb9db79e38e278ec34f7a49dd3db28457396569ce
MD5 67488aabff4c368fcfdb14ac22962450
BLAKE2b-256 3f7aff8bab38db2b239189f64e6e00c293706c8589beacc41513d3d46b5b3aa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3117957af07b1699c0f3e46f4066bb0472f32e06c81c23311814ae86e24ef21
MD5 bb6603b5fcffbcfeef94ead3c6e21fa0
BLAKE2b-256 02972c3ea7f8811332c777075c8ad936f0bb46f3a5233bd6f719acfa8bfbd10e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.673-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.673-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7998149cd7197669d9d164726cb8ad13830235191530769a6db7d1f5d82b2755
MD5 f3cfe6014d0a77c2ffbfed4a2c9f7d0b
BLAKE2b-256 687324516f725d2d3884587a77f111d8c2a76bdcb732d80cc5d5bebdd07fff79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5fcfe840948f73006ee0365278dd5d2ad542a3007a768fb533ebd5bd95a0678
MD5 dadb13afdc41b45c20fbb068a04328b2
BLAKE2b-256 6ce80caef21803d853199fb32b9e7d899ca4a5ed4bfd6ec67adc56e9c65f76eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49cbac00de5fd67317a7411a70a5c1d4ee45202c3535d46e5bf2fd67e0c734c1
MD5 10d61f8d59c762e71735f4786effda26
BLAKE2b-256 342537c3a108abae7551839e3d5fc23573b451990dd8a1e356f7cdb430d746be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 803bbe042bca90156874465f08205aa285872da62a6c7d1efea830aaaddd315f
MD5 da43a5d7863b0f9f608f945aebd06a4f
BLAKE2b-256 6f28c05e2145b15c0ef3e38efd992edb52dfee0ce0dc122cb74b2fd9d7f1070f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.673-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.673-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94214b4fd61debcc57c555e54dd1781a6cda628c28e4cb3e1172a1da09d771c2
MD5 f63805b70eb7dee057f6b2ce189b4fa7
BLAKE2b-256 685b9de76e4b569fb07ee984f86a69a84882cc5896ab66c3bf0a34bdec702346

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aff1946df88783d27c6623318c916f08db6ebb0a66da6a9bcc71896209c8caf
MD5 9239d8079e1cef2b0de7abd2ea5d837c
BLAKE2b-256 ddd34acdc44750664cb943473a87041a270ef5b7df075abff02a8e3056d3d566

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c68352b50fe509739e7ea9accc6f604ed7891f841d876a00fd663892ba560168
MD5 fde61f95c73c5b1e2d5ce29ea5334a66
BLAKE2b-256 bfe4d22d6c254badfd7c62e1f0b5b3db6a4944d26398d16b57efe1447eab3199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 eeb605124364fb1056aa915e2668fe05148b9fe2f793e6b7b40346051ebf6fc7
MD5 befba6b4bc82a8ab6842eeee0a592dbc
BLAKE2b-256 d8d6253fb3a9412d2feea2799f91193fee1e94584644d634f4e928103aecf550

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.673-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.673-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e19066ca51536ee8686acdd82dbfd3aa45093c2c4a096f1c5bb412cc38e26d6a
MD5 440248bddb506f56f1d52d3263563e8e
BLAKE2b-256 0e0c785e73aedd3c246f2d3ad3c55a665e18fed1b588763cf748fb34677d2774

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d4de85c147474f1ab718264bba51f5d72a1938ab5bf1854f87fe0e7dab31d82
MD5 83d63fce81a505c83b124d617a12736a
BLAKE2b-256 aaa2ed924661621ce182e1239137918489e546157087595e5bd9f7426de225a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8d12fb1fc2a17b1e8787a1a29e54d0af005dfc863fe42a165520f80c89e3a9c3
MD5 6dedea2b0395d7a9b220707547ec3565
BLAKE2b-256 c01ae621c7f1712549dc76e5316f357fd7b46212a137c434f91f25a573d5aabc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 566960cd82793b7413d0a51d1d08105e7dcacf5e6670111c2d2771a73e211d87
MD5 3935e9d01d0058027a0eaa023b608ba3
BLAKE2b-256 3c94a3d2592376e3544d0e3f96494d8c951fe8e656f978acfb64a3806403fa65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.673-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.673-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f9cb533bcaac0d3e14d6d8f0becdb7d25e702b3c0154254cc318fc872f60d06
MD5 a646db7c8aef4dd43ba8f25e0e12a6da
BLAKE2b-256 b4f163da055debaa0dc7eacc266c51aba12352c5d32e360f6fbb245ffb713d41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04d57fb38f5559a3811104fa0ee784d78067aca8a1d7b0043a5b242efb195025
MD5 cb6a561d711ee05575ba98f2cd3aac5f
BLAKE2b-256 cb87cc63daecdf3fd2285eb1e5e3a228a14f873708c75b9f8aaa692bb1bc37ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a317667def6a621cf35ab20f6cac637a6529762d30b85fbf40c22d1abaad5b67
MD5 4cb3db1f0c750f13fdf554eef4771049
BLAKE2b-256 712b882d09e1a61271295cca28cd487fd8738b3c498106ad17dbeae4355289d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.673-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.673-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e7dc0650c65b7e141af691e8295285daeffec9e83172821ddeb739c77d08041f
MD5 e943a6219a7ac6d5cfd5e55f560e264f
BLAKE2b-256 04096e3b85d7558cf6dfa03c36bc5fa3b89544c87092785c9fa89d448de01b5b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.673-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.673-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac2ce1ddf850d985e7bb3bdfae86464b380453b7f8c38b2d686a3be640c38f52
MD5 a1474c83a8df353599721d9667eb4a37
BLAKE2b-256 62c3eb94fb5a04ea2cde38309467a7f9f89a193ce6465759b75fa6cd110ece74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.673-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e079048bf966dde334498b4bcaed484d45432b170f1eedae09d606dea359b702
MD5 973648ccc69d6d2f0342a6d7e3af25c4
BLAKE2b-256 02dfb2e29ac3de9a24209bf18f21c3f9646263355fca31e8f2c765a4b546ee6e

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