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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.50-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.50-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.50-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.50-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.50-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.50-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.50-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9d929a7249d06f9d0ead48dc64fb312e59f328ece63def8702217cc3bdc03cf9
MD5 5d0ed8752645ceb9567239fd68e136f4
BLAKE2b-256 e93d90dec8d9c50e2ad5ddcd0bdcef5016055cbd10eb111adf9bc4d3d5559d55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cfafcfb8bc4e7c97583c1d974f83ab776329efefec3bc3d186495652347ea1a4
MD5 0da09cd80b6671ffb0c144c6ff57d452
BLAKE2b-256 193d79c48505730622b9517f9fdb38bfdda8bc06e1c6faf7eed5d469c8888b55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.50-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.50-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f670e9cfc40b6ebd274443e2d3720b1896acbc6b50e88b623fd5299c67f0ae1
MD5 39af3c698519d709ebccbc5eb7ac054a
BLAKE2b-256 6e36c71f011a61fff0e23f54f6d953cf8f52e64294544713f0bc6666d9d61d3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.50-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d20434cfc87207a8b9ecb8a7b04dc6cc037bc6ddbb33580ac5a83ae14d5fb66
MD5 926f81e7a116c749ff51d5035fc330d0
BLAKE2b-256 6fe417b31651a5e2daad39b79a6e3d53be727bd09e7874bdbad059772d179a28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.50-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec4648271c8afdd7e0b9a03e5ede666039cf7853b959bd7a302ef23825a21f58
MD5 363156dde8674e7fdeffaf799bc80025
BLAKE2b-256 b9633d0238f314bc735416db5bcc8a2ddcb5bee4c600c9c6d6d2d47f796d281c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7ba1c4118f54cd6895b69019719522e06749b88ae165ce400383a1400f5ed20b
MD5 7c1331dde82c503e24cbeba3b0550aa9
BLAKE2b-256 d9ee0ab1d564460b0ba628cef4b243a761edab0c921872cba6dcdfc052ec3f20

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.50-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.50-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33fe9301919e9a0ed2ee3ec0090f330ef5b51d60dd153e55ff646e3ac03a787e
MD5 a88b0413aa6a85c07aaa034247297418
BLAKE2b-256 5d06edb94ca570302c9dc0d8f6167d6bcb603776f08aad71fab5c690ac54ba53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.50-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02637f9824e50c8e25923b93f97768b3ab733471853162c9a3076152e1e4342a
MD5 b46f26eaec20b749f72315cfc65fa110
BLAKE2b-256 0b9a1caff594ecbcd7f260e620a977275899da726c5e7c2563061048ffe191b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.50-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f7142dd28968d27d285f17552ba2d776a3e82d8dd52b154a5c53bd8f8fe71305
MD5 deb28051f6fb33519251ed49dd56b096
BLAKE2b-256 07903c75376549e84b3c906e294b53c17207846fd1e86f34d8b2c17ffeec5f6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5a7fd87fdb0e5a8a916094f4f293372fa2cf93bc7a1ca7faf7b734e385b19573
MD5 b8edaa8f802ec34c38c365d231061205
BLAKE2b-256 0280d7e1ed028fc9d595ddaea3ddc0a0452ba4616b9221dc9cb0c3ee6a50c510

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.50-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.50-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50560874c20280cf59a221834a5d56880b8b46bc4a67c1a7c4374bf46575df32
MD5 1d2cb7facb94e8c123dce580f62e5abf
BLAKE2b-256 bead8ac652722e4bce5366c7fe6f0a9aaca6dd5f004d05608331c24896448e3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.50-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bacb3c081e3ec3f06937a0023d10434755b4330169a7416e022bd3443640fb67
MD5 6c446ccfed48d0a12ebdba8fa950bf2e
BLAKE2b-256 bbc44085295b2ec4ee1d2ad2cd77a46ce989d8277d9b5611ce0c80de55838be0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c56bacc16aa79c4fb97d93c55145fa791901cb21cbcb2f237a43f225df896cf8
MD5 8f380228994e16d49b4af965174ea22b
BLAKE2b-256 be79adba2ad98f32b2f6e81b52ea12a5354d300c4deac94e72f0fd19e560eb58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1effa3c0340c525d7bc75228095d1fd3f0ea64c2ade277aa43f9eb899f437f05
MD5 cf170a0ebdd21c04f8d17def30d07193
BLAKE2b-256 a6cd6eb9375bd2f032b95f58b5cc4600907aed1dafeb8bed45e30375d5862589

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.50-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.50-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc7319e56b0953bfa64948316d4ee869be950e8089fbee2d88175807356d73c8
MD5 326dbf7d781aa7eb1ea9eaf39fd1761c
BLAKE2b-256 66d1d445668342fd17f54cb1ebb3b2cc2b32fa33d3cd990d7bfb7d6ab49877cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.50-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f9f811336de74cf9b2f7987433ed47d0ed7fb994c4fc16ed5f850cf32a5c337
MD5 9759b311f9a1c16b2ea0d496ea3a199c
BLAKE2b-256 6f3916c5f60bf883c4a1d818af1542253511ff448aa3148493549c80a71a7c9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a49ed3308fe9bb17199a75f1cc8dff075553a611f5644528a0f841e968b9c56f
MD5 b77cbaa8046276e3076961110fccadb9
BLAKE2b-256 bfb0d5a904ff2548270dae338d879243b5d2654330444f76e732376c5ec1257c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.50-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.50-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ca22989dc166d88914c4fcedda332baf363709b9fe7c133c5b05d40a7bf484f2
MD5 175e3b334114a03118c2f630c135fe8d
BLAKE2b-256 22700ecaea56cccc0c33d7a9f341403fa428f14cbf72273ff0ea4105b7dbef9e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.50-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.50-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 94caaa32ff8026d0726e2dc711367b573b64d899ecfe10fd013f84124e5afef4
MD5 6ac8234f26eaecd42adfc0637837a915
BLAKE2b-256 ce6215de54f758e568af13f48a52a81824e9a0eaa9d7f058fcc0cf04bb99fb53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.50-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3933d9d8d6a1919f92abc71204dc36aeb2c6855f081186f6063f9080bd8f9cf
MD5 5113a5fa765d563adaf4193925d64f3f
BLAKE2b-256 f8a262556fdfb32842743193be3d258e1b3f29e6350f98bfd627c3c1e4792a5e

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