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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.932-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.932-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.932-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a1fdd57644a7df7dfa1583f699e7b57bcd19e260b5a7f68abccd3917e25a48f3
MD5 ea856b9850038ed2fcac7e725d4d6d6d
BLAKE2b-256 a97cc1f20d305d8abc46d959821d97afd80b9a2f59c95f97fbe501d80c3962c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2e051892a4dbcc3f725c9e811c78550ddd8dc268bdd84409d1535a30df69be4d
MD5 748fc674350833d2210de24140b82250
BLAKE2b-256 9c476540c696735d81752dead0258b70e1c64597ef01762e3f21ebd29fe25e5d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.932-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.932-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b1922bd7f440b268d62419255f8d4f9812674299d891c957172f6835dfe5ffd8
MD5 ac0958c67a93acd5fd68dfc4fe589c13
BLAKE2b-256 fa61b46f49917704db896a5b9c1092dfad54703138429ea72781e87df005d6b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d68e34d031d69846bd81f4bd018a360c317df9c3827da1bd4d584b8792a2cbe4
MD5 8a1e6e81a00aab608092b2ce70ee227a
BLAKE2b-256 013c6837114aa7fad11162c8e4d4897d06dab82139360b04f61d3a502e39a345

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8967ad82c67c3faada5d90f64548f71a7009e6782b32899b67965d6094b1798f
MD5 7d6828e2956b8107b30db5c50fba4eea
BLAKE2b-256 0fdadd13f78f5407cf79366a75db9268daca377a19f6bb35aa8b56bdc3994d18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f15b62df2464f8e4a503ca6e440ad8f0bf34b2c9ee8e050669e186c9bca3ea94
MD5 37c5074c0425119b0f97ab8a47abded2
BLAKE2b-256 e755cffb6dd84014c7b354d8c2429ce5733b51c5f3ce0a60261448a348b08868

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.932-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.932-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c71659dcd27bd96f101ce7562f9134f84c483b774eee05493252056122f1bd27
MD5 01ca6a34284b0d3e4040f3915d512e4a
BLAKE2b-256 7bc62da9206312f812077ffd504c59925a95d13c997d2c2bbd5a088d4f157fc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b966b19e7d691e9fa4c44ca1cd6b4c00b1e76423a320c64c6c09f4fe859d61d4
MD5 6138f843915e667453c997620102cddd
BLAKE2b-256 6650abf53ef9314c4820e3cb924485ed099dce8ba495f7970c35c4eb4b768123

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b24f52c34d754be7956d217ea555dd7b6a3fb00e56502ca3789f5b4785c04a1b
MD5 f27c46bf3870d4bc7697d392a45355e8
BLAKE2b-256 95fd37336c3f8fb1f72f6c13b09b4c619a5f6493a0670a134726109105672ad0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3b6eadfee195a0a8f2556790a54884b8ec6efdadf30e4960e61f330a9ac2b7be
MD5 d39b7510e39241639a42b49d658cd6d6
BLAKE2b-256 ae182975a6833499bc5759d4693a2c54b6e02c66565173d7beb675b1eccfa4f3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.932-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.932-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9ecb368439875b592e81d15d7819f88d778357f841d5511aa07f5d1e08f0628
MD5 53322a4008c91b5f3bcc6ec9ba7475bc
BLAKE2b-256 e8f8409b30164028233cf9cb38a280f0fac6dc270cd3ea190bb2cd56cf415e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 799147eac08d4c026ef954218ccb78f3523d2b7979b2472f1f240e948c9a08e2
MD5 8cff2fec07d03adbb9dda088faaa9509
BLAKE2b-256 3b6f43fcbccdfc9c5982c4ea457dd8e36204ffa891bd0cc0152efcaeb0b7befb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 16bee78b09f96b7adf8034c68cd2f6631476dae85118b8902e49f575c547cba4
MD5 a5a26b7d105bc2c30388e24d41261438
BLAKE2b-256 f5826aee15520f703388fdc7b28ad69d577a8983f063d051d3d07bd6e332a0c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d0621864b0914c030b672342ee86a1f2e479b8ee2d953a6aaa2b1974082211a3
MD5 ebf1a49eb68faaaf6095848a596ad921
BLAKE2b-256 0affd64aee3765dc1c76afa9beb52785ef655847282fa89899639963b21ed7f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.932-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.932-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be1c76d9880bd1a08f2fa437c7c377bf8e1da8ec9fa25b7b182bbdfe53810bab
MD5 5283dc052ab0abe51205bcd56ed6450f
BLAKE2b-256 f2a03f6d9e859511a240d1093aaea662b9c90a98a6b4dcd0a7dceba516b6f032

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3134339130456ad2883380f30491afbda38ad9b035e7a7cdf8faf52ab802e633
MD5 f291f09d614dd5ad001805c4864fc672
BLAKE2b-256 fe830785cf8ca3de47e36ce339fbbf0a34d53af298b585fc2a1be5a876a93aad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 50dd820b2ab218cf39f5b892646d0c2af0ba22a0327426b06e90695d9eb0c363
MD5 a01132ed98327299787ae64db216be94
BLAKE2b-256 6cc02a1257aaa3cc2e79bb16d287439ca0910a9218488b89f647e7836f7fb665

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.932-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.932-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 59d1ac37c06bad2bb95aee3e86c19c8b9ba367dc9aafdf82bed792ea3644e2b6
MD5 3618572173cfdf7b44f42aea88247b1f
BLAKE2b-256 fc993f50e2404ed1ff4b91d1cb1a4b62e167c6414e19ac806d6a14ced98ff0de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.932-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.932-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5795440347afc91ed65cd826790b2c6a714d591d8d5324cd739cf6fe41d12315
MD5 61000e444d1331fb2e0ee96484168751
BLAKE2b-256 890f49b2fdb95d86a1974cf062471903c7ffbe25191bb47524c48096fa371ac0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.932-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e470045780364307f5789b8ec59d5e1b364cdccb397585c62101764d5578572
MD5 487fbf79b7ef6d656ba0fd6cdf2a1079
BLAKE2b-256 03bf579180b48b01c7cc3817aeee7d495ece1c6f8b70948cb30dfd565d24e4e2

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