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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.857-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.857-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.857-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd6c7d7ee840e7086249cb388edc4e27f3a6020cbb98bba09b4c04a8de7a2afb
MD5 db46cc5b338d88c998a1bcc26c14a027
BLAKE2b-256 7b80e7f3d4e31b2f5caa4b5fe1d91c57c620c189f2851c72f81321c70a7c06b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c38d7a5043e11cc98c0bb43d1b5742ddb47276a97b91204a8eb42ad8dae29230
MD5 439ad0106f847de47f76ffb29a78b465
BLAKE2b-256 f3ea664a830be2ac10911e6905a0ca237b0896e9b931a9797c20c97c1e6c014a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.857-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.857-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7800d25fff51d56c74bf33a6bd94d5755f6116ae088c7ce3ee95fadf610a9413
MD5 574d20d61b4004446c3924d9c4e66afe
BLAKE2b-256 4cf48ebe86dbfb2837943ca890840e8682ca936094dd47f521a169eecf1705f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90845b3bbfc9db4265ba36e3acf6d492d5d0e37e42d170b42f7620f60450734a
MD5 dcb4362a841b4c89d4182d3adcc72ef2
BLAKE2b-256 c3088c84c4ddf6137b93a3d2cfe2851eaff954f1c76c166b106b3bdadf22860b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ecc15227b8239d789855c4cbae8933f717f8b122d7af867b35d54b2cc5f3a31b
MD5 3c571bccd5b482d7314c26f5286cbf3f
BLAKE2b-256 107fa1201950ee9d5b98b5fd8e3b1ca193db8e02cb85fa73fa48db0611e0a3ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b57cbd08f88fb6348be65c9fac7354a6dd1c8aa359c9ecf3111098a2d1bc58e9
MD5 545b19d4bc2da94630737d70e5121ec8
BLAKE2b-256 86157678ce5f815b6e1c967d823f9113be1fa0939f46f14c8a8c33dcc25c64a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.857-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.857-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 099d76517511f839dcd05539df13ddf8fe57eed4666f075b1b4afadb107f8df7
MD5 3761162422ea3bc8ac2c256e31886ba0
BLAKE2b-256 17e60e047fce66bf048f0675f3f49cf48a3962617a593e5bd3fa758762cb2b54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f29debc988c5b8df84fb2c5d06d1cdb774cd1ef4543b3fadbaa9ca7c303bde46
MD5 178255ad4aff900ba19e3b0f9d74c105
BLAKE2b-256 875815637ace595fb8843756db06299ae8a6daf42b9923ae18d635e15855ca85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dd7c89e4c38d30f3801ac2b476d5d1f3f35eef5f963e1022a3d995c42239bb1e
MD5 8ffccd6810607cd772c67af23023f60b
BLAKE2b-256 2b4692fef671b82e8b84506e900176ec7afd861cb8ee877f94cc8524635a3c4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 57acd4f5e804adfe4cd01afb8c639b8a7c3f167287ceea60da7001bfe19bd9d3
MD5 598db222e41abf918ce1bb92307f09d3
BLAKE2b-256 3f33f30f2ccf9f33155dcfd81c5f8b65209898ea567089cd256b6515cc0cde0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.857-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.857-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46b08a6154829bfa12b08f37b4ccdbdb8eefe0f64ad9b6f5caef436e23250849
MD5 05d8cd7ae173dd01c2a7d5cf6ef66d69
BLAKE2b-256 b7132ca88e2071f58b7e5a6c82dada3e917b207b4c93eedb519b4555f5f0deac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b43b82e11438260131bd5c95e5b3cb9c4cf442db21271124b7818001b327c39
MD5 2bc335c831c9f0faf69755ea17c0aa24
BLAKE2b-256 e8c23461aa0fb68115df27b0991264bc0ecac8b61ff4177863f4204cbd9f38f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f5e9d17738417fa7ff04f52f52f52b0c8fff593fba05d35b0609be8c8915ecb2
MD5 ac380a43743ff3ceed40b23129338718
BLAKE2b-256 fc144e0700469a65f16bd93214b939fe1417051c29fa8c7cbddd9d38cb44a912

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2d1dc431d10b4496fb934bcdb3df435eef2cbefe1965dd9186954356653f8db8
MD5 46bc748b4b661456dd535f72c170ea96
BLAKE2b-256 8b6c0f5892b1865c508b7fb6844443f092e4fa42f077b6634ac7d8a4cb86492b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.857-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.857-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3141cdac72823186e9a8b8b75ec808950516d6c2a0f8a22635f15bcb5479f352
MD5 10fe91437b64a51366e7549d11bbfe7f
BLAKE2b-256 4cbf401c02b7c833f11210e9b15586b1b008e1b2485478ca609b60a921eddb93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0409c2d7fde25f34d91a4af9438aa1395872f0e76985fe2289ea48571a93360
MD5 60d4fe1e2bd816e23483e4820630def8
BLAKE2b-256 3237eadbbb6da88120ad69caf0f11e476bb7eb97a6bd6c1bec7b511a020632fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 39510703d96efa464c07859cc787f59517663a33bc5d7ab491b3163129b9215f
MD5 96cb219ee28ecfaec1eaf8e8bc922bf8
BLAKE2b-256 1c79de5857c54602b6290d39e7a4cf2c8f55bc0ea89dfe1276c777bd4866c304

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.857-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.857-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b128a16b02604533d9bd829724ab82306feaf65c7a363d314da8090c7db2802e
MD5 6edd6d954e5948e8d22ec70eafe0396d
BLAKE2b-256 8c221a82a50911a6ed808a8e7125f4b389042bd5b885d04044e07d43eff3f36e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.857-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.857-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9555c4b1f0feef746071a079962d8e8e0e71a12f036e7dad9f59e45c57e2b7e5
MD5 2583317d476a8ebc399892ba20591569
BLAKE2b-256 c84ca9c9f428dde9dd58c9fe854856e657167eacc072fc12e24b1fbee84b10b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.857-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cba8d3621da7512ca4ff42605be097ecb96a8abe50258b821857a39a9ce28cfa
MD5 b977e72f9d7a7d6837b6e6ff4d323649
BLAKE2b-256 b2a92d5db928234acca25d7b662059361c8e04d7047739ff9b0bb864cba90608

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