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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.948-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.948-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.948-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 74cf6711969b6d4ff080f9232327c2afdb2b7ee9cdb0d77fa5fa878227682cd9
MD5 f269554f00979ac920c5ff6292df2b83
BLAKE2b-256 34b15c3fff1b436c2ec91d9ad8018baf2172e8042ebf7ebf420b975144fb87f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 41fc815fd463a57fd2f1cb3d91594c7e6757a91384984b8ad5545b2475246cfe
MD5 bca70dbc771bfff716ab42e4556e08f4
BLAKE2b-256 5ef74d3899e571b47b7916e9b4d5345bdaec3e76ff8d88cc790ca088b2b1f1b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.948-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.948-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 98c40fbac1e4a0dda6c550f8c783a544be223e48d36f0d9f3e799308e8f2eb27
MD5 77c64401dae8d158faa5f8568b571922
BLAKE2b-256 fcf882926b167f669b1670de0638514aab3c045008ce00ce1185237d9f71aba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab9053764922a2cd2a534a1332bfee9a4e0105372abcee14f4829e082914653d
MD5 02e85868abece0e37542538087baacf6
BLAKE2b-256 886700f6b318c681a80d520563d41414ba90efc25ec50fc9afedba6fdcd7ed6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66f00662d79e61bd3655b0b58c105bda201ab2586563e2f906de1c4d59ae64eb
MD5 d7d1e4bb3f16b468c82ad65eb672d18c
BLAKE2b-256 9be92fadea37d39264b9e64acc69b560d9c591ec560f39e14939618847ef6a5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 baae85e3cee49effb533bfc6171c23d28a01ac19b3224d12ac2fe3f80a64c2d4
MD5 2d5c131fd69ca5f29a3ffc247fd7a9a2
BLAKE2b-256 f482c1f12af355d721682517a09618b21615e87c3da30a600cff9208f4544c15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.948-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.948-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da8022df571a585f0e97df0505473bccfbaa757be8106aaebb2b61036c1b6150
MD5 d45a9f86dd86363a9c4e6ff0f9945707
BLAKE2b-256 4d9e002d06cb7fc33418e010515cf31bae6c3cd397e02c7da673d9a7494a4cd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 940d4bb02577c7a4a84adfc68617ddeb4679b9c43fcc37372465ab0635af444b
MD5 52bc9bd1860dcea2565a292041c78571
BLAKE2b-256 b5e5294ba0a3a071b4177ebe318a484a645c9b59f363d977c86431b16a433a71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3af4c6f69f5b68049567fd7d79bd5dac384c441bb970ce54292f6272198acb61
MD5 1baea1968bc5402a2d6d4eb4aab785f9
BLAKE2b-256 b4e2dcfbe72c73b8579d8b1f1f0153f4a105324df991ba96798cbd54bbb9edf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fd1b240ae2c51331a7acf07c4934f18051a1d3918708cba8d17fbddb65d23d0f
MD5 b02ec3179f56e955e35e5679b7279308
BLAKE2b-256 5c58b118e1d7fb4a517c7031394daf1af8dbd53248c503ecaceb5511fbfb3ed0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.948-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.948-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a991e5626f69588035b220a2158628477cc24aa9d8317e7e4812afbfe7ef5ec1
MD5 1dffbe37986c37f19d132e04e75783d5
BLAKE2b-256 e7ad269da370a59480ab88579a348c3ecc9fbdc572dfaf60dacc69ce8ed454bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89376f8f423304f8f52242ee4d3179d196578ca15575757b3b92ccca0dd9ff18
MD5 bfbfd20f1d09d81286e0f659345eac9c
BLAKE2b-256 82b646a8fb4538097f5651dca11b1e03aae29622b0c66589f06fe9416c718bda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 68474871f06ad1bba85cae99a6d8208755627b4183b87e7a463a1dd409df8704
MD5 f1768a7aa07ec81ea5054b6b8c62a5aa
BLAKE2b-256 a685af3d027f50112ec0d613bbba5507873a428b114d9ef7a82d518e19114d42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7f4b06d068020a9178d39dfa4daa47f39a26568837d9f1bae534ca7f78284276
MD5 6c5f45b5ee17637695e1c1b6b1968c02
BLAKE2b-256 0fd0ccfbf746837e0c2dd3b0a750b0bce23a818fb6d5cce8df4887d0a6703bb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.948-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.948-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3da6fcce9fbc93383edca3f6957353c7ba3f36f00ee31f4c16947da8f3d5443a
MD5 3e3b91483abc535c6c3faecc5f16f9e1
BLAKE2b-256 cfaa2dcb78f405b98f4ca59b80c52571d7858df963327cf368127cd468f955c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 334b098d46079c59b5dc9cdef843ae79498ee919dd7c713658ea18a7778179f4
MD5 0a61f4a6de5bec4814a2016d241065b8
BLAKE2b-256 95cadfef4e46a5a2010919a9a10e0244f6c21f8cf3b9ddc8e8e7b465935bd37c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c2c98a560b6ea6d8a904c77355a7d632efc8ad7e7aac7a63aa0069f1595f89f8
MD5 45e57e7067b62b1941c4765019f7bcd6
BLAKE2b-256 f6db69dd398842ab0eca27394767428cbad5b3cca238ad6f5407d06d49daf83a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.948-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.948-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6f19f02d450ff005a3ddeb691e282cf6439cd4e7cc00e11ea6651936fa9d9e18
MD5 13c720dfaab51cdd6fe634118d204b61
BLAKE2b-256 c9fe0eac8b246ae0dc2561c36d116c39be12107aebf6cc7d69cce1b36b84c5c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.948-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.948-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4933e4f3193ed1cd560f44b5ecba4519f5d3ccba1e17cb214d7620a2aebad625
MD5 675f236bf0166d66cde0a58044933f7c
BLAKE2b-256 a97267e6c860d24723d83df85c6c8e9afdd4fc952fc8023905ef2b7705e69d19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.948-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f154749825a6c9ad1f8f2b578a9acae172f33c98a8b7c3e0db1204eb95f272be
MD5 92557e74692282495a0fa71b13275e1c
BLAKE2b-256 76b5a5e091b41dc042a2cb3d94c6c4970d4fe5f5903f5978147f32dc13768591

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