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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.364-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.364-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.364-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 355e859968e1b09af724151eaa9054c45355c2e7c44d2a5e44b1af558a07ea30
MD5 3f2e426bbf661b27382dd06b2c217250
BLAKE2b-256 ed8fb3befdde71bbbbf542ca560fb7b2b38a246aa88fa215245955b22ba41f59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0458a5e64d2bb0f04caa796a027b02e1cc536354cbd1f5e4ea2ae929fcbe0309
MD5 47a6a3c74e62b9e77469abe9e5bc9280
BLAKE2b-256 cbc8b470fe25feaf6c173af3d69c3ef15cc436e25f7cd3d1b259856ba12f3e65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.364-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.364-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ff3daff3462dc639d36e66bdf2abbc48d586c0a2439ed8f0b4a1fadc7374a49
MD5 c113c1f3403e7a2c82ea29608f92f06a
BLAKE2b-256 87d897ee265bf00978f0589d21c483fd4d1eef86067a57ec5146cab971875a4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8672618773133bf4ee93b64a1ebfbe89e485cfd9e89f5ee0607624794c614016
MD5 d630126c8b0f92a923cf7e68780eb216
BLAKE2b-256 d8352873d56972d6443d7b1f1ee64f279f77e6deda3338b85c51dca2b9687c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 54078bb7c5b23bd1e269fc1e4a994d745be8bc0cabaa518dc5ed7958e0caefcd
MD5 a452681d4a2fcb99cdb5919aa52b295d
BLAKE2b-256 ff6f10673d5a15d66109c3c6f5e0dc56511bab8a6052917b424a49055e2477f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 64ee1240c5b8639979a29a52a3f7a376b37580eccb70149a3850c57d01bb657c
MD5 985d69845578e3904be9c913ab0593bc
BLAKE2b-256 e502d928951398559610a7103bf870b525d9ee9e81d4b7a8cc91ff0823435320

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.364-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.364-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6c9ae201503614b2bddefd4c7e54879fd60d53d59436dbd43fc201ea8124f4b
MD5 fe31b9f750df972a421ef250ac599c2e
BLAKE2b-256 aa8041c4eb6ef605b2afc581cca28b6d274da3a576c5d1321e49a0dffc31752d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69c3597ff94e7c2f60bab801cbd4b752edead07b78a1880389d393e31223d727
MD5 f7998c886c2f2e3aac7956f0cb00d706
BLAKE2b-256 4cc12b6bacdb44198bcefb1466cf71023a776682d45258727576462136f9ec36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 32b60290ad4150ea83609affb6a15765c68be580c2e4ff96bba047f5f3f8d6e0
MD5 619afeee7af4469f9442c6777fcf6059
BLAKE2b-256 5cd6ffd4f24a41bcf38e894bad8644a93713efce7d56bd9e43452fe2f8440415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 417641c09ec15eacfa9a33a3cd6c6ba354a5cf3434050bb76ef4651c23c06f28
MD5 62df97171608ff4e5ff0754926654d71
BLAKE2b-256 bbc514ec22df37336eeaa572dccb9dead9c75d8c963b7800d91f3f9fecac14f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.364-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.364-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1348383445e532202d945f14a1029f53ca48a1e7d5a3bad7a6e666a2a5394732
MD5 ecc74e738aaa68c36103a4586d96f4b9
BLAKE2b-256 80842a6c7d098e2b5ff6157c06452b525e512b0793e852bc8ad95412679bc027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f496227aa1e1baaa64d646d94f24bfe7008f445dd6675526cb2bd9f19151e08a
MD5 cddad3b1ebe1e2776ef4ba0b93335eb1
BLAKE2b-256 e956bc37fadef190ea130b0fde6cc60b42c866cd7f81325a7014854622dd6297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e0b1f16dca4a25c5f9183f80c9f63494c4ca52953b482c1f71986c6dda01cc82
MD5 3000a32f303621d0293ca3b59f4e502a
BLAKE2b-256 9c396a269892c63f005a69245d7665182a8087f7228a25b347661cdd7680effe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b49ac7136b7382d758223be5b7a4d3d2e332cfe4dd6e146f17cbc55e1e83c4de
MD5 a16e5084a5601c46f06ee74393f6c79c
BLAKE2b-256 b22d7faaa44b7fc53dc2b854ebfaf2b13784dcca9e4f8a2c5a3be17a04b29b8b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.364-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.364-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 43ba4da16a6d94542f5ca8bfdc0823d5007a980b584207712c3c55fb3203e7ef
MD5 ba52303c6ec26bf4eb643ab7dd2e286e
BLAKE2b-256 a15584f6a2f023c3aa0a8d764493924837deb8e3a78163e567f2ea9781864817

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c480612c6d2c84bf5585c976d8759ae8eaedbde11c2d0ca800e598df9316a29
MD5 2710565ea21ee932f6f6d91d5922007b
BLAKE2b-256 798ff39e560500b5395015ffcfafb46c5cd7c3fec4d90e6dc4517abe36c1dd0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 da7e38e5932ffea716ef6d644769cfc3139a1b9e1116c1e0185c371f65a5acb5
MD5 a7ac63b2b2e94a0a70c1a798f8c60368
BLAKE2b-256 957d610cea16f253539dce314f85e297af87dda4d17a3c1880a73805d0f6ddf7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.364-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.364-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e3cd0335a55f9444fd53297065cc4fff32cbd3ec63850b459dded7cba6442c5d
MD5 bacadd51f017957e4f3cd20a39ea3d5a
BLAKE2b-256 cb2b42829b2250b267b675321baf750ec0875859f37c869b3bbe4350b3d21db5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.364-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.364-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d43e0b5d11bcc622ffe6d0b0953c58ac36d577681ca621160b6774c37493171
MD5 d71225953a61429e79732e5547d8f526
BLAKE2b-256 c7dae4a3054b40f4201170f6108d8b42b1fdf8e13743975d5eff6d231d8274b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.364-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9d21c3fe7f292cb2c44066b8d9a666b98e7d46519d51ce3bac0369874bb04a0
MD5 4982f3031a84f3e08af1ec4597f5e558
BLAKE2b-256 6e8b27d45b6fff13cdaf00a30babb655a8f212365cce5b6c9d69a75c89443029

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