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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.253-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.253-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.253-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 159a9b1d239318167084236a34c5b8eb37517df375a542cfe52e15c0f3cc161c
MD5 3c75b2d9add9b35b54cd36b09b4f5aeb
BLAKE2b-256 dfc8c894510c83fadfa936ac4eab7ea868a67ac31219beefeb682997461a590d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cc866e8e573d784b40a6a8815b47c15ef6558a4ccad16a2cd9a0d4fe13a08eb6
MD5 0a6bbcc851e0946ab7fcfc743930572b
BLAKE2b-256 b0f4d7ed7e9b2c626f2a87c55c6b2496d69e16b25ad84689d424616f8c7dd0be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.253-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.253-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc6de6f963f8cc50eb652d3fdd03e5a3b6ef8ab68b5b73c07b0a8b0839eb6897
MD5 dfbd7899c2da43c2e78cadd99ec505ab
BLAKE2b-256 152d83b9fd0aba69df93fa5ed9f4e382a282e62d3ebf737b0c05b693b6256e47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b447d2ed9c2665c9df4490c382155fe48cea88235f00f72dee0d291f7e521afd
MD5 48b3ed8ab380f7872f5241f557ca31fe
BLAKE2b-256 8f89db746a316c873b027953cdd1149f4a71859e91ebf2918e2860ac28b3993b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6c1d2c1befd4284c01202ca470c4c8330885f12c6cb17965372af8d15452a77c
MD5 eba7c92dc0d48e38b460b47fe99167dc
BLAKE2b-256 a661c09d1a4756bfca9ff1c68adbeb2380c55141b96d2ccafef4ce6c59bbd473

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8f8a095d3a25a1604a1d9c5d2dbe8e38175d4c579a8ba4539d8356c553541ba7
MD5 307be4c3e181385dff8982cba1da8694
BLAKE2b-256 079da4f261d8dd8df5a7776d9fc29bdd48f747b789255ac3288173730fc28aff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.253-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.253-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be2ff5beb9651ba4187ed0b81a31f55bd3a4b909820e2ca3563021d6558dc189
MD5 fe673057a197de3e973cb2730fae519a
BLAKE2b-256 4b3ba4b2d19b6b0874853eb3e61a79b78d3f29e119a584f07966ac193b13ae34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3f42a46495f396a6bb5dbaea970b77c6be68f32c2b849f7ad1d9d88148a34a2
MD5 9340bdc473c94522ea40ee686cc1a96f
BLAKE2b-256 50754a4b694195914f1af4a41963c1b6f1f76ab34d93671d0175c002dc9211b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d985eed9e6221c380841f3aacb12a025533af57d94587384476ecc74f5edac95
MD5 4bdf8ab56390c776acc5d5f09d7f1687
BLAKE2b-256 aedc13b8213a1acc1beb4b1527f942cd99f3a4866c65d2861dca7bc4febc9e88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c8c09b69dbb658f8908b058c208bc676bf2717f03219404c3971e6376b8c421b
MD5 eb6013b6a4d17fe94a39ee0bb4c63094
BLAKE2b-256 7eac6537307e44f8a03eeb541eb935fab39dee3602002f50a949f551e46a2eb5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.253-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.253-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 753996e81714d893f0b5b7d226f976098e53537d7473f6533417246df709bd5a
MD5 34380e2451b06ef4b052f820f845be89
BLAKE2b-256 8dd7d993374d821655ad9f8daba15a7b5e91842f9cc40be4ff8ce1f8e3473659

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac47f0710220f7b98ba5c250b27699bf0cd449f1efd5228e0aca97dc253d0385
MD5 c0c4c6d4f8269dc0ad1fbee387e5ba41
BLAKE2b-256 4e3685b9bfb4edc8e9769d2d1e174d6d6c2c84bcd2f66459413a480842ca33ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ca645d5c90385c0468c7fb3632b11295af9a83deec97b5f5dfb5215217b2a535
MD5 4247dfd757ffff9d11b0a82ef447c476
BLAKE2b-256 bb047308b89e16d03b7eb931a3879d78e899498ab44f885f7090c116de42df9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a01d08e45f489092c92b001a4f5a36f3f7b2fef4f104a12d385afaca77a89288
MD5 73f024fd146be21a25974909168c370a
BLAKE2b-256 301bf2a014ce2c6ebd6363ae3e45687539a999a9e33e9682d64b70a411ee6571

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.253-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.253-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6980dad30a8125872c2dab2e2fa2c73757bb9c0bfbd9a78910f19e030e34a652
MD5 a863c57d09f0e8b6590762e14f69d0e2
BLAKE2b-256 688df0256f65237c3dde7892924d954ba81274ff8b5c4096022bd3d119cac11c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22829a0b3be4f5a73c53ce27ce0f1248ec9833681fc161035fecffd57653cfa5
MD5 c5b87a374040b75290fa86272db19489
BLAKE2b-256 646e31fac1cc9db159c303853651eac8329a9d94505cb9e7bf9e0550d45dbd65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5bec8986b271f5771bb36de876c1e1715720325c2ef76ddb52ff239543ebc1bf
MD5 fde74a9b6f493225c219769a2200ac60
BLAKE2b-256 464cdb30eb5a308a5dc2576191fc4ead239849442d5f3ba34578dea4f901a5c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.253-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.253-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cd33a67553a661f8b63a2574d7f6dd4c484f3d5f0f370ec1926233833dfbdf21
MD5 eafec6a7bff032891fc2d659c31b748c
BLAKE2b-256 56ae55b65ad14c7acfac9fee40ea03647c7004f2be3a895fbd72cd0659c1f9d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.253-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.253-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d261e62c9c5eca482a185e21eb22dab75c565ddeb01e40496697eb2b3af28186
MD5 a1601d2ca23dfb9670f405a5e15f0e21
BLAKE2b-256 3d388607a8fa3e5bb06c842ced43524c0f8ab67761648cd73d674f8d31d1a85c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.253-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5fcc25ae20de025a02d1ec1b16626fbe9d2420dac90d599d4bad1e6e3c926cc3
MD5 1a303d0c33ae463c910e323789de80d4
BLAKE2b-256 12b4f71dab790f6ff6a4cfb57f4571d56ccd9a45952d4c1ee8e686ecb0d5abaf

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