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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.326-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.326-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.326-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e926765bf5303df451de8dc1ae34c866f82e9a95b6000b86fa1d56d9e27b847
MD5 eaf398d9d34db3437a5b588d6844f4a3
BLAKE2b-256 339a8ea7c0633e6cf83dc474475bb082c5fb0837a19e787254509cce1bea820a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 528752c0e13e760405110e1a5a04ed47f880304a63a62d0be06143d81d665283
MD5 63fda99c9a70c711e6fe194fd86c6347
BLAKE2b-256 c9806b466e23e5fd027f84647f8553b453c200538cda0f87bc524c9dac68b243

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.326-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.326-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 591eecf486b517dfb4ebe2ac157ce4f80a86519c536e87ea9b81370a4835d66b
MD5 b1fd653ec2cef5796d7c3bcedb2ec680
BLAKE2b-256 7c9f1865d37e304e53b2e223ac321a3ca71a8ef4c734982d47a2544fa4ff8904

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3e1c446cbfa4b155928c868c68d8a8302aa392eb9c1308711326c3917300940
MD5 a5600166ee507c0292f3644686adca03
BLAKE2b-256 768d291c5668db7c2cc4d67371a637259ebd307df5bb45ef1533abf4dc74264e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 61853daff07b5f101a218afc6efc014bd8517187ed7cb90ab443f61bc3f38519
MD5 488aec0b09c48e796f7de9254de6e5be
BLAKE2b-256 35fd0ea0a833995a4afcb06c482e5c745e8c91f34fd3d4ef3ab8f28753986d8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 15132af4ae352f85f6732cc96e39672eecebfd0d959ba1b18cd17c0c92373263
MD5 62194de646b34504cb63714893fe2a21
BLAKE2b-256 d636c4de126f665c12987977f146abf877347e89ab99f893ac5ed8c04353df88

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.326-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.326-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a375576480c76557fceed56f02f83fbe7455a5acef08260ff7b7f4e641c3a8e7
MD5 945d6308d6f6596779d1301aa33ad314
BLAKE2b-256 ec04463524b5b0d44bdf68dd90f9e5457fe55a06c6611a7539c9a9cdb90b7c97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7414a843b26cacb1654b3bef085986e9cb98def6003973184fe240fa67969da3
MD5 d2c5f8cf5c33a2a95229486e8cbe0ba3
BLAKE2b-256 1590829d1f765fac561a63abc57455fd82b09b9013fb6474af877a253e998280

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 509fa23e1bc84b2e7f6d348dfa3779cdf39b380ce6afef997b725b79d1fc3f1f
MD5 bd0ffbc3d4fab60ecdffd42316fa53c9
BLAKE2b-256 e3068d607369c1a3641c1167352301b7884f29d115418e776292430191f1a08c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8f6f272dc1c38e41737ab991df7a54de80ba62674bba569df2ee29484b80c809
MD5 909340bb691a4870e2c0736ba085bd7f
BLAKE2b-256 dd9db3d601fab1dca9ca756dc5cfc392d401605fef82a5e3ccccd026f04ace62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.326-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.326-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b51a279f20c0f8f7fb8ea9cc96edb59c239f785add032d260ecdfbc4844434dc
MD5 8fd035450fd075a938b0cce0cca8a7e1
BLAKE2b-256 ac1f30b1afc76df5986e1eacad2d1de6c2a5e0a73fef242146ff8367a0944ca8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f8af8ea7f7415e27b533a70192d4e6c9a3537d2b7e30a9448660122f07f8e29
MD5 9fed3a05aa8429b44e96eb502ca6e300
BLAKE2b-256 666fcc0a7d0a56b21be99e53932170bddc788e1dc40e38a5925cb1de1e1b405d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 79fd663965138252529bf36b04513c597d3c5ebb7e92abfd9936c577e880aa95
MD5 8317ea7cbbd4abf2b799500884d20db5
BLAKE2b-256 95201b0e0887c0d1d645c7b82527a18d17f545a87a0cd6443927c0f991b7bd9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3beacc15fc33b7a3f571df34b413fa292a5b1b10b977e98f6aaa787b68ca25a7
MD5 caba6cd22f3d802c5f176cc8157086ad
BLAKE2b-256 ca113cb3e69e0eae57af1b489f77f329520a567b0cf764c978446766ef0a45df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.326-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.326-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97ddf8c56312a1828de023df3af86f4c182a74fa3fcf62e1c74c94fd23e68ab5
MD5 25d8ee103c5c7abda9c3b90cb701be94
BLAKE2b-256 eabaffc5ec43596a828f0cc3e90f306713cde0c68c911cfe4686d39dbc7fa152

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11ef776f7f7479edbc03ae5fff8d5749b27df0a9e00e5a6cf17b2da034fe24a3
MD5 12f676ddcdd4b8c27de78a4ea4760889
BLAKE2b-256 401d62a8c948203e22927d0cc4e7a94f9e9b4d50a0b3d2bdefc3fd11f2b154bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b10db155d0595cdf76e78a56e09579c3ceb65139afd8b096a786ef462c00ad0a
MD5 96efd6d8f5b980c10838029cae631925
BLAKE2b-256 abcd6336917df1c50c3ee5b94a532a279f36c632fb60fb41556d8b7d9ee8cbc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.326-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.326-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d922a76d90b620b2c87150efab7724ad1601e4100d6ed622ebe13cd8f64e6128
MD5 150325c2ade559e4bad0dfd2170c1ac5
BLAKE2b-256 d898a56fa8df20579552092bc557122e6888485dda844f2859fd335e1cd30c10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.326-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.326-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 717802c05c977ef620b833596ce9f0a05b3f80155273d74c9fa43ca2c18bbfe5
MD5 ef90122f792e9151d080608fcc730db1
BLAKE2b-256 2772c6780550186a373bb5bd68522a7a5077ea408807a796ffe8a1012bfb1cb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.326-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6e161632f8edb22aa7c756a63b1b097245c8b939c0e3fda44fd4b9ef1bace3a
MD5 4ed7e1bc086723526e37dbc5fd4b8a38
BLAKE2b-256 82985874602ee0c73bdfdd660315267a87c81bc610be51b08d964c98a232bb5a

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