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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.420-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.420-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.420-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 30ab85b0d594b1dbb6c4707c8f999cf84be3cb811b13db34d006a41cd821c9b5
MD5 7f727250e11ea0784fdd15b03544c982
BLAKE2b-256 1038d368bc016fd6daeb403c83830e1e9a87041b4092d13a1a9bee4909090f9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ede59009920347912235a9caf877f86a729b47d22c8e5d5315ce257d8977948e
MD5 ae56815fc169c374fc72e2373727e9f9
BLAKE2b-256 d716e1dc1c2d137e2f8fca638a411f77bb3467b22f5a82d59d5af96d82e11638

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.420-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.420-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7e185896eeef3905e89d1c298136b000e7954f31400f398d66c9b249850e53b0
MD5 d849fccef02160295be96bd1cb4fc74e
BLAKE2b-256 19be9c0f7864b931002154bbf6434fad68b6fc305005c7f6c393098f6a3c4413

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6c0ba51caa2e31757342d3d0c20906f271b0a4f2e7c068ab14b33e38d9c0ae6
MD5 e2cdd57852a904415c1018f1c61c1e4d
BLAKE2b-256 7bbc57ca62607e85d62524dc9405cde85eed0baf2ce51286b0a6d8d9500e096a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ca269aa2c59ff191ac9a90ace269c1367a8eea145cf730c1e37dfdebde773025
MD5 9d529ac9eed16225c60064c2ba27cca6
BLAKE2b-256 2013c4c8c5dee7b6f3dd166b1adb2e48ecb385cd4e0ba70eca98d65afa98b227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8adbf09e6a95f56ab87a6f668d26b1bc4e7feea5c9448c6746758f54afbf6b94
MD5 124de38e7645aab1c8850c8f82e5250d
BLAKE2b-256 088b3391eaeeb2c1a39735646200a36b578094d15d76bd37e3a4e2dadfe9f657

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.420-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.420-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e4dc669a0da191e0993f7ea6faa3608cd7443394b1dfb768092318fa79af8c77
MD5 a4a984edfbc0a50471b07d72046c7936
BLAKE2b-256 2fbda140715c3b8958490ccd58090aaf521e5c201d9b92af4471ce9995722724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 266aecbd524da25077a9019525e9963ac5af50c22fa2388d4b73ccec20ac8a5e
MD5 f45dd02fd610d3e06e1af8746b4c3e2e
BLAKE2b-256 865814916e9dc4008b118726baf6822c75a0cad56f477f65a3b35dc6d03a726c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ac2afe430ee51b2333ac80324eab46a6b04bf85528dda554b2f568790819693a
MD5 535b90e45834d6a049aa94892b94b378
BLAKE2b-256 4aea644945bdd79b379af95511790abf6bf94a1d209773c7f68da51979c75933

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fb8435549a8ddfd05441628b4ad42acfcd5e3a5f6448d4948db2b4af50bcc9ae
MD5 35cc0159e93cb0f3db6eab5eef5af734
BLAKE2b-256 99f692e4a5ad2f57edcb252886f2953c5bb2e14aa86eebc437abcd851b3b4367

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.420-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.420-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 981e7ff61a57385e4392128fa6d7dafdcbabcb44eccb831e9bbb42b4e092a62b
MD5 a1e15139533ff8bc7ceb290695c16d2d
BLAKE2b-256 7dcdc42d8e6c8f23b958153eaf495cc6b07b0b9ea9bc304dec5b419928cdb4c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e07b78e0ab2fd12d408c1ddcdf09949bdec734d17f5d4c171e99c549ce36e40
MD5 e769a7e1c37b93c3c2bae6d01f9d67ec
BLAKE2b-256 ddb7860ce0cc4a83c14bb3c3be04a761161d0ff911457514197c3d427ef3902c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cefb25e6b0a5372c2ad991cf49e692b3449fc5eb0c9bc2a10ca170f0ccb0bcc5
MD5 ec0f030f19e0b3e0d02675ca344a9f67
BLAKE2b-256 0c1090cea8d6c18008d065590adc15c497e922a3576981d1be8e93a9ce4b7748

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ab70aca362b7586d5df887d7c59d90524a06e83b12476c62e86f3fd80594ee61
MD5 810341f45b048a53060e359663dbc41d
BLAKE2b-256 82401959e8de93632be9c20ab279a0f0b034eb06abb9ddd18080e22aaa25ae4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.420-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.420-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9263fe43bcfabec56992a4189a26a920319ade577fc2a5d5b2187465e3af0fe
MD5 30937cead7d8144f6db243e565c4be47
BLAKE2b-256 50f25e0aa9d098c518dfdbba687810cb3ba715d4006e939696baf8f5a1c1388e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32b312acade749395555f66d9de926505a7e2ec2ce27b87a59546d1d82889de6
MD5 0b8add8579497590515a1612debc6cba
BLAKE2b-256 e5284e932adde0fbb066abb9f861842ab8d980df014c13ab7eb12a1e556e7af8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a78e0c83b4d0952bf5a21dda707bf00f1055c9d13d2d33d82c7f877eb4e212b7
MD5 3481ff87f1d62dc296888278abb1d78e
BLAKE2b-256 db280ce3662cd23cb4a07701bad0edf5ce9a7429a49832a35e82718211c4f8f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.420-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.420-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a2c7552cdb3217f762e25d58ae7bca63c629bd9813ff7f7395708ee2afce1471
MD5 de96fe809d31bd07b09188a6d937a8cb
BLAKE2b-256 68c902bc8ed78e0b392738ece5d28be0d6be1d1a9ce9d8d4a4bcda4758bed6e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.420-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.420-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28daac9335fc94be9ff4e7cafe940b943653d9c3b1ae8edab7ce452ec6c07578
MD5 b2fbdabf5a68342ea444af0b8b2809e7
BLAKE2b-256 43d59196f24487ca39bc48e241701c051870894016643622c755f83261817275

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.420-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5762488446d60de1d8069e8283056b7174f2fb5b4f9f1deeb846a36f51353797
MD5 09f4d473823401749642855bde12620e
BLAKE2b-256 e02cb8c017f83dcec15a17d5e4cebe9af6eee5c4bd40198c1e0992047d896f15

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