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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.307-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.307-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.307-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 81bbfa819060710ac592f63ae67aac392d7f71f7a7433767d13e7f7a24a406dd
MD5 9f551aa1d6b06c6714bacafb8485b660
BLAKE2b-256 a67f913f1a459d106b0fc717157b0ce14b1672dda6cc691df482ffa9fdcfb108

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a5d999d5348befa0c801c15fbf2f3aa3735e258ec7e012a67aea8b4a04c2614f
MD5 183cc8182c5277896d4905e8ff857ad3
BLAKE2b-256 27d8ebcbf1cb1c8a899393203d06b380ccab4b16d4fe2908deeb055e20f53758

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.307-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.307-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a826ca9705b296b0228ff66b546772c9971a7ad55ee45b822a6c89d60648e14
MD5 1936f10439cc52f104d37cba1b440fec
BLAKE2b-256 2ecc0206849a928333b68c42ee482dc9f8d59b4442c87e8db48ec6beebede2e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 085f953f8e6454eeb8c3cfdac5152626768c9e83e233eadf2f8a6c7477a99da8
MD5 049a404f970fa3c20123e59c104a6341
BLAKE2b-256 5ab49bfc3cfac5b90c492dca3d14a47dde02f5f4719ce11fd641f3ec70cd9fe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f0e29b6db3fecee8a66a4a0df7deb9e4f73a1ef74f2c87a053758c7576016460
MD5 73a834f6c3ae739fb372f65982625c39
BLAKE2b-256 01cb464d1e6cb150f8e72b902f0660cd8aed08c04e863fd6f3b7a4e43f32b899

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1a0adc4cbbd52a0d71eeb80ce47303f8644c6c7bd5c9f64c35d57586aa2dd406
MD5 abb7e13056cb287a31077d343e27ba8c
BLAKE2b-256 7234491ab66866ba545719cf7a3b6ec417621916e2a8b29d0df1ad3395a4dd0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.307-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.307-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bf5c9d551dec322a5bda6098e4c490e3e9663875c3d4d3b8df13ff8fceb7c5a
MD5 e421b9d3b9783d4dba85922fe6229203
BLAKE2b-256 b97d132378b308524832c548a50c61262f424565a45c4f6f7ff81be117cef2ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 baa41a33e7fbf292baf7753cd8d6607b558c119a67ed413404db0983aa5f7871
MD5 e3de90a4cb9a76399e2e6393fe33afab
BLAKE2b-256 ed2511dfd321431a3e7ebb8bab3bf76f248e4e1efa42ceec896f5bec6f370b30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4290cf83c1b85be39d9d8a2df49121b45bf9734a215c0485c98d7b7b5a82975f
MD5 96a9ac8686fab56c612c7f82f80a048b
BLAKE2b-256 6eee6d1b69c21cfbe41432d3c73ce9f9ea7a058cea90f2b0f6c613b4d514ac77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 db9a1184bb4c0cde99493606b52626a089763c7748559f4a378059901c1b4cd5
MD5 8b0f857be990dbb72bbf253e2ec555b0
BLAKE2b-256 4b20ed525f56cfa13d666ede42a2791e7f4e7840e5eae42440ddab47e5f1c6d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.307-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.307-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ef4f83c170851dc18043e16f3db95c7604b2948ae09f4028c4b2dc5708e2883
MD5 3cc7dbe2fce552f2ca1bed558be23361
BLAKE2b-256 41afd231ce0e0969a5ecef5287ab27ae17f51eee752b00b3f731e986d3be4431

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b1d3f98dddba96d94fcae5434fe84ca660ce1d4f99b7d66fb1553721214c9f8
MD5 5ee9166c83db65617013eeb83348158d
BLAKE2b-256 b704640cf2bea187891167113021b3d8d30f3ef7d734ceb7df04240758322f62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5940a9fb3fa08a0d83b499044a7e9d73e65c9e3f9906d95bf6947d6470191673
MD5 32cfecf88b96a479a1478f93192ccc55
BLAKE2b-256 a953201d97759ec451d21338deeafcaa82d705abc4974e97305de1442ef80ad4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9ebe84509d71c14a2f57f3b7c9bbfcc91237837b4dd9e7a230234e087df48101
MD5 068438d6b05aa727dfd3e5f9314f9b62
BLAKE2b-256 46c1d21ff042af946492563009fdb2565b1e2099df4c0c7140d9ed2531c0a6e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.307-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.307-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbdb159b743c39f495a6e03700fe066ab2988390b62b44f637ed71ac6ee4ab89
MD5 d9366990eb350c0d0e31049572e9048a
BLAKE2b-256 2cae1eff2ef714ce9353f1a3b4b71155784b9eea83a32d0837fd1c0a80c3f42a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f1ad510b3f1d6521a1f7bf33eb800d93a2cc1d03bad60a9bce140b9cc78104a
MD5 259ff943a2830c5bef69d39290d195b8
BLAKE2b-256 e4aeacd602f05ba5a8bd0add572230db68a2871790ec225400bac52d8ad273e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bbf9d7b82e48273a7dc4e2a36898b4e5bd650362b9efdfd30e12eb4f213156ec
MD5 7cc9ac6f1da2499e1dfb465488407ab9
BLAKE2b-256 3e321083366afa129770fdbf537db788aa0fa60446966ab1b6376d4357a3ba94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.307-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.307-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5a3fb0080cb5fb2b37f0f2b544b90d85521f4613bd2bd2eeb97ea2644f91108f
MD5 e623e36da097ac1a423e05c7bc7341ea
BLAKE2b-256 64fd1dd1e51d2c574700b00d8bda9a7261d421dce2809150f39ae7002a036176

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.307-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.307-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd6f94c5b64051ab355e9f7cd97c187e109d4555c230075ff6dd7bedcc44300c
MD5 7bdfe28a23135eb7052f94093e873349
BLAKE2b-256 6b9ef4ab46d17c24ac2a9d0e9eec9a3ce715c816957dac172d20beedc8e91a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.307-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e97870c7fc7bae7ceddd8ce791a9cff75f81064d50b948b4b3757ffda7f44a3f
MD5 1dfbb90bca58fc961da56ec23fa7b22b
BLAKE2b-256 288a663e774012e81cf8cee47465f223eab6cad71ffd1ffff0f18d95bfedb537

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