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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.496-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.496-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.496-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9a7e57d5db28598d0e3239937182a2779c8e838ab5e0c5dbc3be550c97aefa62
MD5 805efd8cea122164e4a648bd2a173f1e
BLAKE2b-256 4e7ca2a444d8482eb843ce6b04fd5ee2484aa9a1783dff940f1b27740d482203

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7bb9c57b4fa84a321456d77f49c2ec540704ec8816e1733adc4662ea389df33f
MD5 1a550f765ee3a332d6d977aaba36bbaf
BLAKE2b-256 2063506b76c83dfd39e8c4d90ff869f9393509d94bfff6a19b12ac47af68cb0d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.496-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.496-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d3571a55b430807e286302eaad7d17b937d7f007ab1b0296e13d3dcc206a7cba
MD5 fe4efa5178a4bc7a184f26e2d6eee845
BLAKE2b-256 392432b3790f228bda9866943aaea9d08aaa0d21353e9765d31400f8361cdaf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 808ad4adbbc2b01f3488c307b752e87ff7cea0008eda9c31898f8ef001406c88
MD5 dfc156c90c2f609e06a197b24c187530
BLAKE2b-256 4347ff3d434bd04cb2bcc8e1be65ef8264bfab916c1334fb6c2c908e634c3b12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4cd8b04fa65842eed20f850f7a24d45cf6a0576116c77212af381202775ebffd
MD5 927844750c1b95da6a13f12c6c29f6c2
BLAKE2b-256 2ade5a009fdd114be27d67a7fa68653bc0a773dc0b314f35db7c8f7b3575630f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5bb7b51206b66a0d26a02c1a67f814bb9672989ffbef0d7651f1389f222b327c
MD5 a843b8f739ebf247043ffba74f6aa9c5
BLAKE2b-256 22a63aadfb0e9a1df27e6d886b2c530b8c99cdb9d131657b8d7ee1aafbfdb278

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.496-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.496-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b2cc615147c0451fcb4c4761a7f0d2809c48c79e83f1d7fc5eaa66a1cee2e14
MD5 711618f69c15c16d05bdb9f06fb21e9b
BLAKE2b-256 d363bd6d7803852ab4b5568ca26299b9ac57ab1a5f8aee89b60bba664f551ab0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4eab8d668bfb8c3fdd02f5b308263cc121e2f3a86cd35d5bd28b147a4b837f6
MD5 034fd76de8a487f449d2594b7f40b434
BLAKE2b-256 ce38a0b6d2583afb60005326a0668840a109cff335fc5788cc16243964865416

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb2e7946ff7cb9fd0e40e929d4f591f00e772b287ef5bfad114b370e700473c0
MD5 d84f164f7c32701b3ece238ba1eb7b3c
BLAKE2b-256 312547ce67cdc459b2d5384509b96ea46de17c1b45fb24f768c2d671e6423d0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 797f878c4e83bc9532cc593f1c741a3934a322b2b14da34d51f7f41722557ea3
MD5 15f3b7bb20c553fb5a3a17bbfd7ac76a
BLAKE2b-256 b8aeeb7548d35fd179d8559dc79ec737317ebca52bee79f52dc0a63ab49c2b50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.496-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.496-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd05c063a3aabca5e22a1cf6c4fb3c6ff0095bfd65f847b0e6fc1977a698ae78
MD5 b22aed0e84d059588dcc0543f6a4d768
BLAKE2b-256 0d7416dd43ae6dcb428ffabd01e215335549e8f54f44c4eea60b1595009ee099

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdff80a9f2d5781db8450cce2c05327ab2b2cdb502bb396ed473f09c58ee6cbd
MD5 390bdbedff8afc5d0436e3d96025c5c7
BLAKE2b-256 723b3628da8ac3ad36d64b8c59e23ffdff5b2538a105d41d68fedc35da99f978

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a98c0a1485aa172dd8a1b77d1d827057638e2181fc989eabe4130e7921209abf
MD5 7089a4c92c099045247754dcea7dcdb8
BLAKE2b-256 ac331dc355b19181acc49921fdcc1957e24e5d20e9e1712602729dc0946679b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 033f89e1e0cfcaf68d65a44feb2f1f2789233bfa249316f930efbe007b9e1867
MD5 dece591ec8b8c305706d11cf9452a901
BLAKE2b-256 8d83fb3c13594df4051723742d46863a7626e2c307cbff9ded2727457134fc5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.496-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.496-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a04f929a90d546f359b2530b19cdeadc06b1a21e1eb24457208e43db02283cec
MD5 bca4b7f652afd9895eaf7f1d210acf7e
BLAKE2b-256 cc80213bc9c000401775e04d9a1029156fe865c1a049dbfa01940179cf300c3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb7eb7c891058bc04c9f163077ee909adabd13254145b09baec4383517551f48
MD5 b701d3d5bc69d425a9aeb33d31cf8c63
BLAKE2b-256 f0174c29eb977b59790952375ef2a01114dabe678d4f1ad05dc736859bfc41b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6304f4a9b43085b74c3d27b442eb00b529eed542a688a3ff151f9f8c4149e96f
MD5 1b81bfdd859371ec824a4fbd608477f4
BLAKE2b-256 3e6f8652eab8d46a16b0f3062062853ef7a60e0b66b353c1176fe0148f5eac18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.496-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.496-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 06324edde18277c04613c0647123b3ad57488c2167a9d2b92f090a213514f22e
MD5 eb260a8e115da680f4b5f09c1c65ae5f
BLAKE2b-256 904df86af67a566d71169bb29fb7b88e0216a447e703186d5a5617fb5b7085b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.496-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.496-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a34995352e2478bf010ee62a4ae39717d78537502add0d2941aed25dbed80b04
MD5 7928d5a5bc235010ef5b167dd01c4ec7
BLAKE2b-256 4ab965f1bcd3dd443e3b32d82ff3e340dc1466ee1a4112b8382d8d33c3021572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.496-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b95ee41cb3a79dd32b17b0f881cb777938ab44d65bdcba2d94eca1839430bbbb
MD5 b80d4cb528482f459dbcfe2c6ced7da7
BLAKE2b-256 06dedf4cbae508e33de99ba1f080c0562718f75f857c25052beb1339874f7d1f

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