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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.657-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.657-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.657-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cef5092f4ba714763351abc5a79fca321e373c29c122355a8d5bb7e66f35efe4
MD5 9ceeac22de3e49bae951fa40f4143ee6
BLAKE2b-256 eb8cfb2398a1a8eb8e56d13d6174820c8f386bfa46930555e577c6eda2a97dc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 42e47613aa92f05c7ccd355b7faab2062b68dbb43852e049883a0cec06484d83
MD5 95aff583850d84ba68651a6dbad37bec
BLAKE2b-256 35084051e165d4fa24476eed8f5e13ec0951348f42083b438172428de13b929f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.657-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.657-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1418a4a528afdc8097b11aade4ac8a39faef22a7beea3c6c42447ca9085feb8
MD5 cb6554d5bf2ab33d5d6ce71b2e56fa49
BLAKE2b-256 94819957146179ecefb1ea1d1b22a6b237e01cc34e2f9f81927d63e5667239d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d78f9a8df7ca885c8b92958298cfe8525e9454396bb866927b2d469e934a4ad7
MD5 28a5cd1299e12995a65bafcc83942b27
BLAKE2b-256 aa84ae8aeec51b3ad7a6d56c194269478f58036ec6f0ad3bdabb73d9931e400a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 192c95944f2a6798e20a602b78af4a1aff813dacb83802480d0e8e7bd746630b
MD5 72f41c8f3fb1031e02ed0724c5fcb79e
BLAKE2b-256 f620008bb2b24cfbc36c28586f686648aeb21cfdd4eac92e18db176f4925af8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4e3484cb2187e5d458adcfb0284db090d59cd6f56385a5be7cf08a13b8063a00
MD5 38a82592d8c22ff9987e3e34eef42918
BLAKE2b-256 fd142081e05169ff976ffd8115c4c88db9da5a20a1bafa585bdb942a5083e76d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.657-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.657-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1606d4afdac01c3163458abe4be41f145d552587dd9b568b54b8004ae668847c
MD5 cef0040041c818963f9fb44e60a5114f
BLAKE2b-256 942d9549793dd6b1556ccceeae69139b92c5ca8ab8611c87328b257e1c18ddb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52bcc65fdd94a7485b2ffc62a4811040fe09fb138d75ad7b0190478dc5f76d74
MD5 f2b72e4ac0abe9418a0d19933a34cb3d
BLAKE2b-256 6f46e8e330fd249cfd926b7884f275734974a863c0bd3e34fcf929434b24c3af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7e61098f4d3e9734d02170657fb857c324cd87214e00bd924f802e0e61c68cd7
MD5 6a330c78a32d4c5f53514e00f8b202ea
BLAKE2b-256 305e9361790c95827af0bd605cb5f86d2210a23a8559d288780680cd5cf2c905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a850f8f506fe934aad2ef5bc6912cbf8b000453d4dfd4ed3d15c07476af750c7
MD5 352276658d019b80b2f1ad290ab7bdaf
BLAKE2b-256 82eaf287ec5f1a6fdd27ad75e9761ea0011f7924c74c6392e1d6a854badbc936

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.657-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.657-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62f30937ce5890959578e0bf5f0f7409aa94d169cf76076822489f828ba1723e
MD5 b6c3641dae41f2665ac2248e73aa2427
BLAKE2b-256 67420df4974ce6c71ea4301054ed233a14a964b3936d12477950f1e0362a8208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68857aaad51eb6757f614f88702e2019b3ffce28367a651544d32dd1c06f73b0
MD5 35edd8ba73204b726ee3af59d0d53383
BLAKE2b-256 02f6d03dc9c39bc380b913886c80b3725083d066f6d761e4e546ee06843e09c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1aefa7989dc23ef89eeac1392741861e317fc8c3a57c25615e9d2f5b744722dd
MD5 b70e222e663172162c3b89fcd22badcb
BLAKE2b-256 382be0d1607dff8fe22b67805bca4739f3103707bdde135abbaaa37d148650b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4e613e74036f595e4a29614aacdd8c248fda7ab02e879b68a64c09ef9431c5c0
MD5 ebc9e86f50644676f3aa0c613b0557e0
BLAKE2b-256 d3b8ad8e9df08b926cb01261273f37e983a0638b76a66fc2978d700730a92dfa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.657-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.657-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 838e98f9a8b3524ebe6ee9457cf47be38d5678a0550ad83af465f5b4639e20ea
MD5 37c9465096a5c0d11332182cd6093e27
BLAKE2b-256 ed22d4c7ed92bb51115af7e2b2dd947072f20bba2aa99a44536d75509a5f1bb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8184dd3384b5c8c4efd12975cf1755d7cc03de513e987fb350a906b525c7128b
MD5 445ff10ff63f12a972d8892b0ae59c2e
BLAKE2b-256 91d9a2e975f3a6d8e78dbeb62df3ce77660047ec18e3dcb2eae77d79f8aad99c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2607ba9a8eb1d10db14a69a1bb4466933707a8f3485c9c29efa765eaf40198fe
MD5 80b23da27a0e2422a927f3c47e7a3fef
BLAKE2b-256 941a6cd7728ca4b4edae1e72952c26097f40e5f524e2f795039e0e757f9ce650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.657-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.657-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 16eb9298be4564e4ce82ad9d112d7af069bac9694de653d47a145c2b4ae0fb65
MD5 4f4cf64b19b0f4c57d74065269bdea29
BLAKE2b-256 a858b9765992713db367e98c11c938e72906daeb6628b7e190c467682ddc4661

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.657-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.657-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85451a299c4ea4431495129f3e11d7a65180efca95a84b6d661d7270df94fa1e
MD5 9330d783239f048724ec79f9c48c748c
BLAKE2b-256 47d4508a9b243a1f2c5389115362fd5554a6db8dddd8e5bd73d4159d618821bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.657-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 765aa18dd6404fbaf841fb2e39a8192892f1e0dd9f4871212c8844238ac39589
MD5 5255efe637d03064d796b679493247cf
BLAKE2b-256 676a6c212403ca5c433e67a9729fa880388f0a676db17fae5f5446ec08449c83

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