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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.957-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.957-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.957-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.957-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 99062783002e887a15758a1aeb8c6f1caa8ed5784aa2a7b20ae01cf0e36626aa
MD5 aa42a67458afdf07a1811d5df978ed1d
BLAKE2b-256 670e726e513bb3ed058584d2153483e4fefa7af99f5874bcfbb8c6c935c3bb6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-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.957-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a8b59cc6a82606fcee81f5afc6d81c3a77aca29dab9717a56d78ec3aecdd4f07
MD5 db85337d30847d5613d6070d40eb984b
BLAKE2b-256 73a52fb7d9eaae757757ee6d3462fc1a3bc53d083042da7acc8bfec610e9d01d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.957-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.957-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 15cd763341512ffaf4845806ea52a5c39d488f3297025ad02e35a9e35003206f
MD5 ea5bff532d86b4e8bb9e22a8c7042476
BLAKE2b-256 26d0dd983d2a5f6b864d8a06d7a34b288e4f5650c2164fe5c54f6e6379fa3c57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3fece57792e8b737fd902d32cddf7fc7cd3f7ea6d5d61226bef1c94ac442b82
MD5 c4dd040eef27872ae76538a923f544a6
BLAKE2b-256 16f1c731a941ab9350e979ae661ec899f9d00a56d019e42b226477009051b239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aa827961d8f505f2ab5fee4eb025ac087f9823082de5d7f8abd03db280389241
MD5 950ffbf9e1c1bf3508fce9f187347516
BLAKE2b-256 9b4d6fc1e257b7f3b91e2584ea6d48cdb6699e8da248b9b86fa65cbfff82102c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-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.957-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ce6b7c0fb3e674e87849eb138a46b82bcea032b83c47a1c7312c5f27288c7c36
MD5 56aa7fd0c707c8c233935f7f365408e1
BLAKE2b-256 a753929c979b04432875889d1073953566bf7997b8f79899f997798c04ea1576

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.957-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.957-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99d66dd3db6e512de087c9d5758b4db5ca3f795dfc5cbb04cfb640af91797b70
MD5 56a674d1fa9753dc213b00cd1590532e
BLAKE2b-256 a6f5ba5a16e751848523bdc69284d47180bc4350ac5fd2c766eaa1e4cfd2c996

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea82771ffcef26272765e76f4f71bc6fca6c30347cb0a74919904bf7ad28d3f4
MD5 bb9bf3334d8b4b5b77338b7516f2797d
BLAKE2b-256 bd0a9579c263adefee68d930a8f0c640353722fa6d9cdd6a9f2fef2cd170e5a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5e98588ad78b16fb8af33eeca759469138b97954d482233d2ae75045f3e1f211
MD5 24f638f607f0249db75c24bcf9bef997
BLAKE2b-256 93adb4122f1c314479cf135fc6927ede8eb76a15fccbcb52277c0d47f21b75c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.957-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d66306de4f03e67968e17d1942fdd089977f8a96718b41a1c484b6c696dd2a6
MD5 59217f08050a47f63879ce660ece2a23
BLAKE2b-256 99c66951f8947c943b7e48ad75e71a6dfce0e72c17a7329d2415e4e71b95b7e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.957-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.957-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 38fc2583a40cbeb5bd3dd330adfa468f72040b509fc94cd3596fb55db7a26b69
MD5 3a8b311571f926aec9f198b8dd6d81de
BLAKE2b-256 25a12b502a72e5f569deb5ff03877c224cfccacb356fe69b78aeced8f649c89b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff776c2bcc4e449223e87ded2fbded5d3aa681ae8f92cb50b03730f866666b94
MD5 09cb881182f25882add4b7f639846e33
BLAKE2b-256 80967f077bb5da6c8f8d86d34cb2572f4cc5e02a17dca113de765d6abae007b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-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.957-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3f5d6dc28c787b496b0049208630bb572d76bff332afe635dc1da406ef0d59c1
MD5 68396fd3aa4311c82a369fb013bd5d0d
BLAKE2b-256 b3d0d9b867e9ea3637bab98066421f9ced1988d81798a7d3b9f942b859450023

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-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.957-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7698364d955a2679cc0cc1b099aceed5d35dbe6265621c48cf3e0cd47cdfdf09
MD5 a5349e37f60c3edf22db1c223a52322d
BLAKE2b-256 ffd7a9717f97e07465c37cc7fe68eb6a2661917d1bc6c2b8323d10d0c2126600

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.957-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.957-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 25a2bcecae63e1a3664009846b5f600b3b52a79f78e8c40abac3f3dd06a83090
MD5 387e2e57ec0d0bbcecff1c2a5b29f8a0
BLAKE2b-256 bdf1f023a3755654cd8a5b77eac6326317a1ebf8d0172faff20b8dc96fcc7e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09da2da4468e04cd37e1027eb4d1458a5d4d008af9083bb26cc04fb9dac019d1
MD5 e0cf71a99159507d08d034d5e507d159
BLAKE2b-256 b91bf03afc372c7b7405f4ac62a47917860e8583495e7b7449625512b0bbf966

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-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.957-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3207526598d3fac308a57885e240411246a0327cc8608e13aa9665a084f0d9f4
MD5 4ee5a1db7cb06fe422317caa32f8e9d8
BLAKE2b-256 9b206635154c7e66d825b5f7e1fc3efcbb640d5b5602d6ec8f36fd85e8f5717a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.957-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.957-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 902d011c8f5f0db14310969d54ffbf17b2a139ffdd1cbb82682c2d8e3233beae
MD5 75f0ea20ffecf37989d0b5be2aff3ebb
BLAKE2b-256 a7125ae824bf38d639072cdcfc4477d3e2c7f5ce445e3bb3155fcd07a83a08e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.957-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.957-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba1779d5d390f0700d70cca706934c8149dfb1e417d39def53959f691d79d6bf
MD5 91184fbd6abb9830c4efc339382e1314
BLAKE2b-256 174799c2e73d83fabc4afced0f81361394444de2ac48aae5e4079216734588fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.957-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46036ba7da0d29feb286bed66670237004d679bbd791198e212735de78064704
MD5 223fe338ecbff4c69a6a4a9c6d869d7d
BLAKE2b-256 ccd1a35c7c968fd7f0acf7224168b777f52a1ba366ec142eab91c029ee4f6fbc

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