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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.432-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.432-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.432-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7005d672e420437e3b43030bc737a84b89939d55c909261ac37a2b342524cf47
MD5 e25ded4e252b14105cd59c8dc16016d8
BLAKE2b-256 5dacfd07af7cfc74d93c7f2ff4e84a56340bd8093ad573c2dc3f66580acc4835

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7d4170a0c7ff598d13eb1798c24af665b91ed57a04bfe722e9b91e9bd63e6e57
MD5 7f3a337ce526725a328e926dae470244
BLAKE2b-256 ba18b2642d372cd50335118d64baf009c153eab1af991b53828b24e578135997

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.432-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.432-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ccd24ece5aa663d6e1fa556b789aeef3647180189bb68685c5b598ccd736570
MD5 fdbb65200d5433359d76e2a0cbfe71a1
BLAKE2b-256 596a4eb4c5d357f05ea513a3a46f2446ebbbdf1041862ce86bc82f0a50e72d13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8873c77daf75a84551f00f9481caff2e5de962034cf73e1ccefc278a2f1e7fcb
MD5 8dc36b348a8626545fbbfae66a60266e
BLAKE2b-256 4e2579b2b97a31296bc650da6f70cc521e4a7836ccc54347bc0b6d533ebebc38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a25bc049aa688fb8568afd84927514a54028cfb12349a94a7af9af154a5f4aa
MD5 95a670876f40a327ab68ae361ec342aa
BLAKE2b-256 303d32a6a8c12ec008a3138b637d64fec259ebdf916941ceae0a1d4bd08d4fb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 56ad0efbd76cac8c5b8d766a03c9f2b6308e12f4c1ecd831112bd36b931ac227
MD5 bd1884092c80170eb0e24d885eae9661
BLAKE2b-256 a788732dc96bd0061e262c244e1ca8e761130d8aa654013560c3d9ad95ab4589

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.432-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.432-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d2b5215deba851d1e52f5ddb50f09da64b19e9846d7f2693d0f2773dd9eace3
MD5 401d52f295f66d0b22e0d8d18ed00b72
BLAKE2b-256 88be832f0538cc767167eefc725ae44bf6610e255ee3609970af807748d36e94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54b8ef60ed3f7b42927ac7273aa6e5c26d8bd448ba6822782292777af5ae0da7
MD5 571f4b7989cc34b164a847bd82847973
BLAKE2b-256 7c9904264efdaa66593a457735513f1c9f3cf34d80ea3d28f0df057dfbe8ea67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2372ff95b8b0e9b5696c19958c229e2587eefa4fccdc9bfd04564011d522a9c8
MD5 b9ca9ea7d508e96b8334387e1b6ec1d3
BLAKE2b-256 bbc518cd62174e48c6de533a9df00b7e9d08d206ba6eda997f81c7dc0607cb03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 47f6008f4140f649b3ea098c9db8fe481db826a54c5c21edba2862f60f8205e0
MD5 c36563266fbd8a998c6083adbb5bcac9
BLAKE2b-256 7d90367d798cf6f44138ca2de55bec18a1666154820751e466347b2c2cf7e47d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.432-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.432-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19ca87f8a7ade0c0f6db9f5df141d7f74634f55a410c24b340339a1d6ae8102a
MD5 db9279f9b0df2a705718b17f8a172c30
BLAKE2b-256 21ceff4628aaf3e944de0135aeee260570842f139a4d3c4d04f04c2d8496c4ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15c583c0e5fadf5c22e4e5e978627946cc9b38349778d8a798bfdb16f268009c
MD5 9f8bfb291432f8eb799d351f00e55a07
BLAKE2b-256 ce2eae7362101d1cc2cc1d36ae16aa1f4b1ee3ad45032cbf35a0918376e690f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dd328d7681b23e583fcc4fafcfa16969c95442150f1f82c2a16475dc43d59b1f
MD5 734ec6bf226f99c309e819f3de3d5c2d
BLAKE2b-256 f1932ddd65866d459f87d063a3bffc3acd795a085b5a9c04eeae5a0910930158

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 83b02ec1370a4061a5b1c217d1e8efb74a1ef3a920b20e62381b5d708ca426eb
MD5 d8adb97779daedf6a4d32c8dff1acc28
BLAKE2b-256 5fe8ce9e9bee40ea05250bcfe4833e5a583369adee8152e762d439e791fd275b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.432-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.432-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fd7119c7f6316f79fd08951f343e0cc1e55372a1b4a296f4cba96e68f08884d
MD5 c731e9542bab228ac5d502eafe60be06
BLAKE2b-256 720a8e9ac7788c5495db2eea9c882b18eeaa585708258d3bb486563fdeaa3df1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9853b76dd085109c43a944e25692723afebdef7e8bb951b0d219eda9edc08d2
MD5 312b2c5da68354b86bac8c4b433a3a90
BLAKE2b-256 4bdf4c5691eb1b8b76bf66d538bce41fd4a78b7874c91c867c4ad3af60ddba92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cc1355c1af1cdcd5046861d33f23a0afdae4f13a80a42d703e35fd82675cf7c2
MD5 5268691f8c6fc8879d83732048d27147
BLAKE2b-256 a48a27377abd0e54ce8b77bef5b0c49f4e1b9ddd0056f47302234f3298433ebd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.432-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.432-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e1de78c2760f536813a6f7077dd3ba85880b7426311406681226159a6b01c840
MD5 9162eccf93fdd8a9276329869a87b50d
BLAKE2b-256 66c121601f6d67e054de7d40c6b9b6ef58158a5787746de8cfba0d51c365de97

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.432-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.432-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a8b8f29a24d592c1b1d00862076b55968f0e3abebd828f4a836d15ac70708c0
MD5 01010a5fbc8cc914eb8bc6dcb722efed
BLAKE2b-256 9f034a7e1592dc0d2e2529269d0085e7e864fd16d7c8fe2bd7c0143be03f3416

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.432-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 649d92b41f91058e83b8c819bb4672220634a26330c05d96621239f034b0e185
MD5 09ac29deca35591302641966e8160839
BLAKE2b-256 f4fe3b8eb2461768af22b97b181b98db7da6a5aa23eebefdb70bc0eebe0bda01

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