ENDOCRINOPATHY OR EARLY PUBERYNY: NUTRITIONAL AND CHEMICAL ASSESSMENT OF PACKAGED FOOD PRODUCTS IN CHILDREN

ENDOCRINOPATHY OR EARLY PUBERYNY: NUTRITIONAL AND CHEMICAL ASSESSMENT OF PACKAGED FOOD PRODUCTS IN CHILDREN Abstract The global rise in early puberty in children is an important public health problem, which needs a multi-disciplinary, toxicological, nutritional and computational study. Packaged foods are most common foods consumed by children in today's diet and are a double-edged sword as hyper palatable foods containing excess amounts of sugar and caloric density, and simultaneously containing a hidden vector of exposure to endocrine disrupting chemicals (EDCs) via the synthetic packaging materials. This multi-faceted issue is addressed by a novel, comprehensive method that couples the use of AI-based dietary assessments with quantitative structure activity relationships (QSAR) toxicological modelling and an efficient Bayesian ordinal quantile regression model to dissect complex developmental endpoints. The framework allows for high fidelity exposure information as the packag...

Inner Products in Mathematics: Properties, Computation & Practical Applications

Inner Products in Mathematics: Properties, Computation & Real-World Applications Matrix Space Toolkit in SageMath

Part 1: Getting Hands-On with Inside — The Dot Product in SageMath

Welcome to your inner world—of vectors, that is. In this post, we're going on a journey to explore the inner product, a powerful tool in mathematics that helps us measure how things align, relate, and interact “from the inside.” And we'll do all of this using the mathematical computing power of SageMath.

๐Ÿงญ 1. What Is an Inner Product?

Imagine you’re in a playground of vectors. Each vector has a direction and a length. An inner product space adds a special rule: it tells us how much two vectors align—how much they point in the same (or opposite) direction. This alignment is what we call the inner product.

๐Ÿ” In \( \mathbb{R}^n \): The Standard Dot Product

If you're in regular 2D or 3D space, this "inner product" is just the good old dot product.

Let’s see this in SageMath:

This number (21) tells us how aligned u and v are. Positive = same-ish direction, negative = opposite-ish, and zero = perfectly perpendicular (orthogonal).

๐Ÿ“ Measuring Vector Length: The Norm

You can also find the length of a vector using norm():

This is like the vector’s speed, size, or magnitude.

๐Ÿ” Detecting Perpendicularity (Orthogonality)

Want to check if two vectors are orthogonal?

A zero result? They’re orthogonal — no alignment at all.

๐Ÿงช Try It Yourself! Basic Exercises in SageMath

  1. Calculate the norm of a vector of your choice.
  2. Verify the triangle inequality:
  3. Test the parallelogram law:

๐Ÿงฎ The Inner Product Defined by a Matrix

Want a more customized inner product? Use a symmetric positive-definite matrix!

This changes how we perceive lengths and directions — under this inner product, even e1 and e2 are no longer orthogonal!

๐Ÿ“ˆ Inner Product in Function Spaces: C[0,1]

The concept of inner products even works for functions. On the interval [0,1], define: \[ \langle f, g \rangle=\int_0^1 f(x) g(x) \,dx \]

In SageMath:

Check the Cauchy-Schwarz Inequality:

๐Ÿ“š Inner Products on Matrices: \( M_n(\mathbb{R}) \)

Even matrices can have inner products! One way is using the trace:

\[ \langle A, B \rangle=trace( AB^T) \]

๐Ÿ“ Inner Product on Polynomials: \( P_n(\mathbb{R}) \)

Polynomials up to degree n can also live in inner product spaces:

\[ \langle p, q \rangle=p(0)q(0)+p(1)q(1)+...+p(n)q(n) \]

SageMath:

๐Ÿ•ถ️ Orthogonal Projection: Casting Shadows

To find how much of vector v lies in the direction of u: \[ \mathrm{proj}_{u}(v) = \frac{\langle v, u \rangle}{\langle u, u \rangle} u \]

SageMath:

Use it with functions, matrices, or polynomials by supplying the correct inner product.

๐Ÿง  Why Inner Products Matter

They’re everywhere:

  • ๐ŸŽง Signal processing — decomposing sounds or images.
  • ๐Ÿง  Machine learning — PCA, SVMs, and more.
  • ⚛️ Quantum mechanics — probability amplitudes.
  • ๐Ÿ“Š Data science — measuring similarity in high-dimensional spaces.
  • ๐Ÿ“ Geometry — defining angles, lengths, and orthogonality.

Inner products generalize how we measure, compare, and decompose all sorts of mathematical objects — from vectors to functions and beyond.

✏️ Ready to Explore?

Try these in SageMath and In the next post, we’ll dig deeper into orthogonal bases and Gram-Schmidt orthogonalization. Stay tuned!

Comments

Popular posts from this blog

Understanding the Laplacian of 1/r and the Dirac Delta Function Mathematical Foundations & SageMath Insights

Heuristic Computation and the Discovery of Mersenne Primes

Neural Network Generalization in the Over-Parameterization Regime: Mechanisms, Benefits, and Limitations