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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.946-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.946-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.946-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 73ab140aa3453f5ebc7b364ff39e076bbce1e72d359f5b4140d8ab8daf996266
MD5 79135b62d35e35e4804197b1b5a3fbaa
BLAKE2b-256 b010709c70270b48ae8b3447d963eceb9e31ba541a2519de3f971e63f14261c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0d7c1fcaa0f1b96268e95c71ebb413cf858b8cfbbfbd2fa5f5c84209124d52cd
MD5 4e564fcf95f34a124fe6957f176d27b1
BLAKE2b-256 db4930a6c2ffc53041d7dc6038f0ff19008696be1152d730075a0cdfedcd76c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.946-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.946-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6a3a30c3aaf49b8dbe441ce1fa53fc5e5add96d5e3ca4b49301876c2de44282
MD5 bae579b4aca1f546288c6b18950b32bb
BLAKE2b-256 6c70bc2a124b45e8d0b687843037e1b4c46b60d8d20886b46c1ac8d831cee1f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65c0c71d37dca9e5708536b21ccd253c3d1d3b90dc7acfef777a085f3273b838
MD5 8f82dd4b9f1592972922f4e827ab905b
BLAKE2b-256 8971f240a753dc9b33f3df52f3d020ab4586f2174fd7d75df3cd6e57aff6c7e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f6bcce30bfb728a7b9c5c1340c6742269679978510db8f76b08bf09df76c1bc9
MD5 bce2a4603bf2fb8a674b7e62fbe6a674
BLAKE2b-256 d88e7cf4a312696d88c5f46e61edc24bf44032e1b553336c7560bc6385b35dde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1d58152e3b5f05cbbd60d32e7de35e05d4a490a064c0a59e96617ce582d5247f
MD5 31148c2e661da0f035db06f09059d3e3
BLAKE2b-256 e948d37ca4f98e20074bba44bab8b94f522615fdafb5e6fb446e02e51fdb61dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.946-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.946-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a883461183bb0227e218cb72939b660177e242886b9d746a907797c4ff6c167
MD5 5283480de8092b1e67a6ebb5630addbe
BLAKE2b-256 846685603915ad88f484fe9411a01b8e8e8c2db54b9adc3cbf55e3bb10da8342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2523ec2225cc2ddee4f652c1dfa91a1e4195e6fa177a3889bbf63c1fb93fb94c
MD5 8eda29fee4a80bc20587903b1ca5a8bd
BLAKE2b-256 9b7fd5b8538c419aca7ff92b997b0bc4dbcb88d447a644e5375ff22b3ab90f1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef4046b85757791bfb677c6ad01c0497fa05952e065ee586f9bff4d228c3d7e2
MD5 da7a59a40cfc6452816da6b75f768757
BLAKE2b-256 136719d52cc097f9ec2735871186b73ecd732573be5bf662e885fd887a0f31b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5386a8abde30b76f46a72c2ed5cb62a343c413e7c0accf2799b148ff007b0b2b
MD5 3d7ac2880356f46eca2383a13825e4dc
BLAKE2b-256 6271b1b60b100436af79b8dc7302e01c199a9ab01f99e24281f0252a03d8a891

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.946-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.946-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e8e0cece2268ce23657a4675ff075bebe4a64409c7adeb8315d2712ce0b01c3
MD5 c4c730c25d9f27b34a7a3504939de0cc
BLAKE2b-256 f8681bf2f4b43451abd1d91fc5801dcc8382ebfdff7397f96b6a4a9134d7ebfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0544336eaae06268789de1c072452647417105fce1db98d0a2a19f05d5dc82a8
MD5 53ea44d78c954da18b3766a17818b162
BLAKE2b-256 80010bac0e15d833c8003927f8a5af6594d26506a7e6c3cb87ff004496cf1d4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 98baf03e922f02544f3fb4a5400d02f2373ff15aa5cd120ef17ce3bb588e8bee
MD5 aa26f4a028d8fe447069e49b3d1fee2c
BLAKE2b-256 efcc6aaf61e91bf9d7eb2c15f6b03354c2213c0675dae4b18cffd9df45f78e2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ff9d966e278080511b7c54bb9087d9813427f1945a60ea78bc9229f97cf3a904
MD5 82ab0aeb12749a91a0dd98ebe3c76506
BLAKE2b-256 f8139aa392e198396e9925629a96fd048223ddf13d96e431dc8ff641d27a8a44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.946-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.946-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71a96781f6a93f670e1d1628db9b13b7d1c91cc3a38d496a48ffa6e388e7d305
MD5 9755263c7988a345d58b33648c47634f
BLAKE2b-256 6d48733c20b8f7006b9aec79832443d68ee8a48006f7c61fdb7cc8f902ab987f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bcb2acbb04ee947b8a580a6391a996bdc9e921d81b423cafd2df7021806a92c
MD5 4d3c32610bc492c3ed52f9713936b36c
BLAKE2b-256 2b6b21785fc6ee4924751deee13252a78c41642d239d611ae101441f52b1a2ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3da49fa8c51e45f2ef13b791ec0ec5098df8409045090a18e0b2bf8fac07ce58
MD5 f00fdaca1ba854a3b0423b65c2cbaa14
BLAKE2b-256 c7a7aba99c668512a7b4489a1423f05e85d7dd2b2a9835e456acbf0c01a600e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.946-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.946-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 151d2635e12bae7b4e8bf22f150ee808c07981455a5caaebe511b971f0781b58
MD5 ea78e5a0fed61132b2822d27fca96bdd
BLAKE2b-256 63a55ea425ad758e49eedab61d69a7fab80183993a9ba785a49828383c75db09

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.946-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.946-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c83adc17b825666b7b1419e5162d254b3bd3726a78a6b2bac268ffa140ccda6
MD5 9dbe0f231f783adbc2234dd9e10f413e
BLAKE2b-256 5dc6ec71571b04720b621313bb6bd1181e38a02894bd090c8ff0665be8a3b15d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.946-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd503048267161a3443dbb360e6ada71e2ba46a6549cd52c3b66ed5aec937765
MD5 ee21b3b923b8c8ae36ee1fe0790c941d
BLAKE2b-256 a9135f3d262ac3d4a02f68f5cb5e6fbe8dd12ebb22090616f419eb4c6816273f

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