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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.223-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.223-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.223-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed98f729de0d005b80a98851f092f92896f9ea1471f0b7d822cb48ce701df261
MD5 e92d1b5bfc81c2cdaafb8200e08f631b
BLAKE2b-256 23fcb0a247ab46123ab483efc39945942572d00776f56f9b664978709a7b44c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8bd79a5eef6aaa8e05b822462d508aafdfd1c767e8c5851c115f8b8598a43745
MD5 2caa64d48df6d6f1629c2b975c328c6c
BLAKE2b-256 041e28bb1a8e648f08e846e756f72912be4f4e4e1eeced516a8ecce94dce9e40

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.223-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.223-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 82befa96c1a273851068b85b59240ac437e09ede90f1c1f9174e02120debf1aa
MD5 7ce27725fba8b2edd598a4a183520b29
BLAKE2b-256 8c346708e4e2bab2e8d365a954a079b4dfd179d580f5bec18ef9a901dc431d81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18ef3edba6ea3c7b46b48e4160c7ea660f34c5e8575a82bac1be3b4a6d3c8554
MD5 bc6a89c9d4b5bb290526461f3a1e64b3
BLAKE2b-256 fbeabb8f394583cf558ec4e69f91241933f9d232c51c0fd0b556c56268dc29bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 37e39810b062a78c24578c196e596b981dc08ff87bb5f0b1504409906a0e7e2a
MD5 dfeb77c78fdf9c2a39e0cb618a88bb0d
BLAKE2b-256 2abb019438860b5224b34889d9ed04b09fc517392ac66f0661e8b1813482f765

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1c9db9fd6d8f701044243fe45ab9aa3a5c14314946dfadb5215ba8212d20366b
MD5 aeaab83b17b7006c99967e3538fa67d1
BLAKE2b-256 e55d48f4c78e4a2522bc66aeafbb6019c3c54cb086e678d4275bac7c7db4a742

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.223-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.223-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31b2f23799280af5314ccd4dc1053cbd2735f01d480a4350e7d5fcba559aea57
MD5 28fa39cc760a6aefc5fe2256a85cb2b2
BLAKE2b-256 4e8b5c561e743bdac17567e844f11e2d84b1b59942ccbf97d5718641cfe25039

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea9b2c3074daa36a59df9df54ffaa278929ea528fd53aa905dcff8b55e2f20aa
MD5 71abfcb97a49c89b17b30b15acecfd21
BLAKE2b-256 3981defc53a21d37d2afae4d9ea54380a36da23fc9e3414ccd9828acea3e9d21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4b2d312d0a41f2e9b65e35f35c52c5006858157811e8b0079ce28789c590bcf
MD5 5716cc35095082f264abf478a2f6eb75
BLAKE2b-256 0f60f1730314eab210a86789655ed3ee706850f76fa8b9325778e3af7dd271b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9032435cd466dc508ef1279e2120c92e1a26374a07f3d000755416100396566a
MD5 da0bfc898fd72b8e2235be394090ceda
BLAKE2b-256 e6ea4e07ea3a7d6624a8bafaa6e5d23c8bd6e141d5520e6ba81bd353f11c8c05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.223-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.223-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b184d7ed00518546f76b7dbeb922465e3a62e75438dd4f9ab4d093aad44ed207
MD5 bd9cd8d05dee475c1c8d49260d64782e
BLAKE2b-256 4af3e06280e753d8c3007b3044cf2fc364764485488a563052a061f678bfb7bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75140f5110cb45e9d903e26b276f09ce7001937509b1a348a652ca529713c1a2
MD5 28fa06176f7c48f991e89b36a513d965
BLAKE2b-256 d0bf929ec1d8f06477296a8cd28768efd1b0a7141e8536bae09486bab7cb1869

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 29db91844ddde413dc319878cb9d2d48d0b9b565bb8856ab0dc5ae5d968915d1
MD5 481ead432200249b4dd144a7f4cdd5b3
BLAKE2b-256 b68c29c0695aabfc7b83ee6eaff357d5692b3de2652254627bd8b1a419ec60ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 07f24de27575d88191078c102b075d3f246dd91ed04114210e689bbbed76a4dd
MD5 8f73509b225b6f70160450f109d69945
BLAKE2b-256 cb100eb48b11f0d5ae5984f2cd7824206e2bfb5964ef214a06dd495456912bab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.223-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.223-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4326378ceb3b8f9459564859ec720f0c4671a03c41dcfb84dc3bab3c891878f6
MD5 b023e96ef6853925b57a44baa8b6a1f5
BLAKE2b-256 ffe5d4e96e4a53f6d7f06be62d789b1ef6e4cbde8dc23436e8a0e9d93c21b2a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1c944531f782e78f25ed949802ce1afb1e36b2d5808d7f293118c910246697b
MD5 e06b2c9fa806304de9cf8df2e2744a20
BLAKE2b-256 0ef2dac5b2917d6b0bd85e70dd6323e3b99939eaf5be7385c187bf6c70a77d54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7d9586e3cbaeddd21c4e9dcf518227aed6951bb7e92c1f43f48ef75c2d39c20d
MD5 dcdf5b7121f327b37226f79e9f390728
BLAKE2b-256 6d07182817eb74900389c4e9242b8dc7d36900bba543c7a9f3f1faafb457d07f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.223-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.223-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 558da24791f3c79ec35e141b15fdc456bc83daeb79ea5e95109851ad4283b303
MD5 5f4af4cb21666dad76900410bb1645fd
BLAKE2b-256 4b3ea6c87b47be58b8a9829db2ca221e5cb4b3ab6e22f4adc47cff824ff9a377

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.223-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.223-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 697dc2708d9b20bc40e4e91520bf04060cf15d5fecd569256f6e3eacdb715362
MD5 27906a53c92a6c06ac62e6d1838bea23
BLAKE2b-256 48638d4723b776059ff5de223c1239fbcd08a56250972f5d5d4f8b63220e0323

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.223-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8cd995e1cd919f1c241c4764ae75e2f27b885482be2b827192925185e3c0d85f
MD5 c08fcb2035adb3f789b68b5c0efcaf72
BLAKE2b-256 85c3eb571c43d2e77550f812b3396979badc63152dff0a9d9c859cff9440f112

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