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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.289-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.289-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.289-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ba7112169ff97880d982cedb4a6c24ebc8c0c0aeb23bed1a859413bfccef4d5
MD5 fd85cd46d8dc78a9e0f072fd8a3839f9
BLAKE2b-256 6ea9d8365dcf50d16efa3de54614d27ea734c77c4f8791fc7f5e7ff5c0f81122

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 70efe2770beb63398bcd0b5be17131e09f1272d19e5216f8419ecac2614bf2a2
MD5 dc15d4128b19e7e426bcc1a29ef0c490
BLAKE2b-256 e3faab8f5624e8e2dfefcd9219d5101d31a6830adaa9822b762833250af1be50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.289-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.289-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03f1ce1b22fc3509d9009e4eed23e352f9009db0aa39332c25d531fdf5b1b942
MD5 20ec254550d23a4f7d15cdfde45fe34c
BLAKE2b-256 20adb1e52a80dcb88bbc6c058d80f1f219b15d8236b95a02f837972327c43c83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 767b38179a75be79fb9359bdc1a00db9543c405e2b078cef14b4a85c9064d004
MD5 f1ceae1b91b54a1b39e7274d6ac12dad
BLAKE2b-256 f7cb17e71465ba8a439223a7a44fdc105f69ff6bcf6ca8c08efca37a6869e6a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dd0615c0bad372cd1d9dd4a735fde228f96e732194033763f6d3b3b2bfd551fd
MD5 3c43bae3a0cf9bceeab475f0448632e0
BLAKE2b-256 0ac0ed6a53fabd133786390989f4ea6bed8c938e16d4285c3e6affbb530c4619

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1623d24f0afe6fff6d7556a037a6fcdaa6499b5b59901e487c2dec5eedc96320
MD5 5e70ada376a17b7235d1cad21c592b29
BLAKE2b-256 a09c4333c78f88bf026dc811e79c04e4f2f8b4e8b84f63aa0cda51b8f8c71e1e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.289-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.289-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 467b2ff707be1bc04cb7a4d1e6559c70e417c645a0f09584bacbf741b0a15417
MD5 d877baae7aac3293b0b8ad84e9510b02
BLAKE2b-256 45c7b7ec5a652659f951c7284b2308e70c0ecd08e93f8145e543756e79c69204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f41bd64a8e3a98421859dba3127e25f1f4f501733f0da59605de79328f2c4254
MD5 f108918dfa8c9db7f72083220af6294d
BLAKE2b-256 ec80df3a0cabdaf3b73312b7cc82abc84c4ce64c3110bb4d1de4f6a419e87eb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6bda913bc68de841d6bbe1b75ac1b21b34df71209dcfd3dd01670c2c4e2f83e6
MD5 2a4e2db2734496a11553e62020513d7b
BLAKE2b-256 8b7d134dd3f5b420e076aac3ceb205979f0ea1154348647a3dfce277225de688

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1e5c251cb4910938667b4cb46e515cb26dd360db53d3e24da9a929aee9db01a5
MD5 5e89d7f205f0b4cee83a399a0a4a4a88
BLAKE2b-256 6be68d4cbd05f44b63f47c25c131b3f11312ba4172fe5b0b45ee52e6c3ea4a95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.289-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.289-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bb2e19da1f7405cbf0a55464a56a2287bef5b510f9d6f317cc1289fab9d990f
MD5 bc97e0d5fdbf6510defae60935ec0b21
BLAKE2b-256 fd749d5f3f20b7ac4df02c8e524a802ce7148fcf5a12fac6693679917b3abbac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c924e6c844caa77e10a89483a1f2f450e206eceb167db8b4075c81c56896d6f
MD5 921777c7d7864975e9669bdc548ab215
BLAKE2b-256 46b208922308e06d93aa0fd1f782c81ae8da9c72f5dc59e157539cb61a77de14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dba282fe15cc76083d83d75679793edf25f403dce31e677bbc93f1306ef61604
MD5 f9591db818dd7045b13fb9a602392862
BLAKE2b-256 018f7fd437a87b3d3f4c2d3f414786c178bc1ac4463c26ddd5299ba6cee741de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b3d0a6a92e846afe17193dae34e8f6da1bb247e68e3221e18d2a96eefe6bb6f8
MD5 7fe10733a7c2092b1554c5dfaf121a96
BLAKE2b-256 10ca7f8964b450d0dfec2408e8c76a3182b61d1f8a63f4cdf0250d263ca24a46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.289-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.289-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc50cbbc4fd4484cda7a227e97a69e09ccaf094f364ee1daeaa4d80242220898
MD5 46d294e845484e03d389156ac80195b4
BLAKE2b-256 38dd0c9161820e82f663870af560cd2edb62389ad42953a668f5b711df527564

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c24fe9666968ee3ae2ae41e87815726965b6ad2d8cabcba494d52601046e0f3c
MD5 04c03dcc47555218cfe7269045d2e387
BLAKE2b-256 2ca51286e9c3debee39e325df6f6a026f3f75a5b4018e39697bb7832192c6c8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 19fb8c7026b2b330970f03adffe5fbff8e56b8836d882ff3d918616253851fdf
MD5 1a642e22ffb218e672884d4ac693932a
BLAKE2b-256 2bb1330f042f2b907ed5247d90c2017119d09e1596b3c1dacf6630702be8671f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.289-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.289-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 30964bfa75059aa571bd2fe75304295cb80aa77b07727af0885412d7c4e8dad7
MD5 66733f38f2a7b42fa6fa6568ca153680
BLAKE2b-256 2234a352f792c9f6b2cbe308d4114cc9bd41ec7d5efd4a78db620dc49ea0200b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.289-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.289-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09649d9bfab014e374a81840799a6ffe4da4f649bd30745ab595bf0a229de21f
MD5 ff6eccfee404497fc324f468b9fbf4cd
BLAKE2b-256 1a78002e18bd3450805ca01e08cbdea9a7199b774f15fadd7a12a79c02e8ca25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.289-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97dbe30e4be9b1260f7d9ead47b892a4759cd943bf93cb48a4f7bb25e2c9757c
MD5 cba079b10fab7b3def96fd89affd8274
BLAKE2b-256 fee20efb9d119033e6dedaab55a206eca0281806acd0b83fd549502fe3ced70a

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