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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.381-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.381-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.381-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8ae10443733a8a28158cb3878b1b911d2e0a9f9488462348facc21469b1e2264
MD5 759dd16163a7e7c4dd2122929e385392
BLAKE2b-256 0101e6b6e3a508682cc837a6958a5aca1dc45b2d0318235befcdd9696c97d9f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8c7f1da98f3e45bd90447a020a6bf7a8570722ce382c38a29d07af8b4f88cbdc
MD5 e79b0334455015be9adc0678eb7d3d9b
BLAKE2b-256 61880f1fa45f390f69a1ff316df681486b68e61a96b2c95148504123cc3fb4bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.381-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.381-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a76144eb899f18eba46221c7f7f3f2bae72c6921eba057c1f3566bbb991a042
MD5 2e7c24f22d113246ff613ea34621dc47
BLAKE2b-256 0fddf08d29a3509fe34fb8be58385e543632fa5513f2c69035e3f90fd320c3b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb0580258676e5808fabfbd9e53e42950bbc4d503b11950f1064669e5f0609b3
MD5 e0ba3f40852569cf72bd4a7290b686ac
BLAKE2b-256 ad0817ed86ec3e07b6211c4231265f09de36016cebc8613a4558d4a998de4bf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3e4f085af645b0a5086f2745df8d737d65e13965d7c7383572c1a951539d00f1
MD5 fb3ca9f30f5cf05023521d7e63db6eb0
BLAKE2b-256 dfbb3ac619959fd7c34d087036a46beb8cb04e5fb8a0092ee8b706423e1a6c61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 aecac185a8850d29bed5359b9341f15c4ab6c1c5e409eb5262588b15435fadbb
MD5 1414862721cabe5a64dbe14af13534bd
BLAKE2b-256 a0800343982fd6b8c32e65713b6c4f127e58c8f56e1d86e191e751a1698c83e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.381-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.381-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35063221722ef8953434c38bde4ea30fafe65deff0ce312d7c2ad0400479af92
MD5 24f8c428ab4658932111e6552507289a
BLAKE2b-256 b8b4ea882db96b0ada9d430b4a67f31fd454147495a4cd4767d7c558bae88cf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e38f78c3fdd0a26b6ba610e76571f77be5d637b74e5eb93087e8832a2b662de3
MD5 91fa08e22d89eab4c6bdd367e01ece06
BLAKE2b-256 8260dbfb4ad3f562fc43220bbdbcbdc019a2f3a3ad0a9809af2558c19f70ecd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 58c1c8d929965a697291cda5bf3605aaa2ec068fdca90d0b8cb6ce9bc9daf119
MD5 eaf656d5a90c27bdcb495600cfff7e28
BLAKE2b-256 52ba4de41bc590ba14300927a5516bd3792c17a6731a3e0259ad67fab5585da0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6117fd0fdc88c6bb6a1ba598224b15863839d4dfe007b18270878d6ce6007ad7
MD5 ef5ed324fc5f4e32e90d95989505751b
BLAKE2b-256 5147ebe64268191f890b731f62b10ba85c03fa21e137bb8027a9453249d82538

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.381-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.381-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b85fc6f011ec0b138353e85b5a0f33c11df199b7a9ed0262e3e0994a11297943
MD5 58719bc30202631684d28b309579d3a0
BLAKE2b-256 b77dba9f1834e82f95cb8811538a61b2cdd7814a6f8a8d34739cefb4be5d090f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e9050293d5fc723d49c09ace8a9666ef0d071cf9b68ac6655c69635b7ddeeab
MD5 740bd5a9b029a0cad9e5c292f867baf2
BLAKE2b-256 a22331a69f31b9052880610275fa5dfb756f280e7f28afce3a606eb397360a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 678511687541f01753291a77f87ea589bbc055a67a4d3ee75630de43ff1fe86b
MD5 24b98d915be0925869faf87f5c57e9b8
BLAKE2b-256 9be5cccea850d6e1a7fed60c91a79e0efba7edf6e8a8eac117676683306169e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7131a5afb4cade148ea277b5ef9eb924b6c0867d26a8f6ed0acd032e7c7b417b
MD5 375e8bdcae27d2fc36a1af6fab5a477a
BLAKE2b-256 7dd65f18bfc1e44ecfe66dc569951aff769a5e448a7ae5b1764a360205edb9eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.381-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.381-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88d2f3d103b16a47ca3b0b73d10259bc8e0c83a36a402b91afcbd011ce43b351
MD5 af4d45d8512e4bb8f2a28ad5000d7f62
BLAKE2b-256 5e3233aebdb000c0d9bff154dc9f04f04e61fde88d68aed368ecfc40fc5e9d77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 385cdc0065ce1b221900393c3d84f93358384d3001038dd0466b6b8e6405546f
MD5 69ec3fe2a6c7ec2407c8c12a40069920
BLAKE2b-256 4278762f071d0af7361a142a4c28e7305ce3369faceaf30c2b126038f0dab840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 380a29728467f2ce79937507b3c3a06b02d218a6945ba6dbea4eeba8aa26bce8
MD5 9328c8af42770bab19589790643f6148
BLAKE2b-256 718f1cc1bca83942947914c2ceaca191336f970693505ce427b4882b18f22cd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.381-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.381-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0c4e8bfd80875f27f6707abf49746faa0f3e03b26f88bbfd8bf6dd344daf772c
MD5 c9f46f4ddd1f8962817dac4ec160b053
BLAKE2b-256 58c0abf28584b8b517f1ed26e7bc2db7ad6745ab5219fc217bd6b04b0f19cebf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.381-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.381-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88c917f797e5f68321b49532d7495ddafd19ae6bfe4b5a6adf46cff168962494
MD5 f528bf59cafe515ef4f3945c2a2e01e9
BLAKE2b-256 933c1239408bf2476e4015fa8ea350a054599f65ed734e848c5e5ddd632a43d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.381-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f6cb4b38cabae2212f66e11be483dc40e239ef1e411c09cdf53103cf6f2b781
MD5 e4d7a725728c2c959faf1d6877085aef
BLAKE2b-256 0d83e98fd7a369e3021d1be390e15ce5e86b567b8e177dbf6ee7c7cfb7f51287

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