Skip to main content

Specular differentiation in normed vector spaces and its applications

Project description

Specular Differentiation

Version License

This repository contains the Python package specular_diff and codes for applications:

Installation

You can install the released version directly from PyPI:

pip install specular-differentiation

Introduction

Specular differentiation generalizes classical differentiation. A specular derivative can be understood as the average of the inclination angles of the right and left derivatives. In contrast, a symmetric derivative is the average of the right and left derivatives. Their difference is illustrated as in the following figure.

specular-derivative-animation

Applications

Specular differentiation is defined in normed vector spaces, allowing for applications in higher-dimensional Euclidean spaces. Two applications are provided in this repository.

Nonsmooth convex optimization

In [2], the specular gradient method is introduced for optimizing nonsmooth convex objective functions.

Initial value problems for ordinary differential equations

In [1], the specular Euler scheme of Type 5 is introduced for solving ODEs numerically, yielding more accurate numerical solutions than classical schemes: the explicit and implicit Euler schemes and the Crank-Nicolson scheme.

ODE-numerical-example

LaTeX notation

To use the specular differentiation symbol in your LaTeX document, please refer to the following instructions.

Setup

Add the following code to your LaTeX preamble (before \begin{document}):

% Required packages
\usepackage{graphicx}
\usepackage{bm}

% Definition of Specular Differentiation symbol
\newcommand\spd[1][.5]{\mathbin{\vcenter{\hbox{\scalebox{#1}{\,$\bm{\wedge}$}}}}}

Usage examples

Use the symbol in your document (after \begin{document}):

% A specular derivative in the one-dimensional Euclidean space
$f^{\spd}(x)$

% A specular directional derivative in normed vector spaces
$\partial^{\spd}_v f(x)$

References

[1] K. Jung. Nonlinear numerical schemes using specular differentiation for initial value problems of first-order ordinary differential equations. arXiv preprint arXiv:??, 2025.

[2] K. Jung. Specular differentiation in normed vector spaces and its applications to nonsmooth convex optimization. arXiv preprint arXiv:??, 2025.

[3] K. Jung and J. Oh. The specular derivative. arXiv preprint arXiv:2210.06062, 2022.

[4] K. Jung and J. Oh. The wave equation with specular derivatives. arXiv preprint arXiv:2210.06933, 2022.

[5] K. Jung and J. Oh. Nonsmooth convex optimization using the specular gradient method with root-linear convergence. arXiv preprint arXiv:2210.06933, 2024.

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 Distribution

specular_differentiation-0.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

specular_differentiation-0.0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file specular_differentiation-0.0.1.tar.gz.

File metadata

File hashes

Hashes for specular_differentiation-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e96383b997fd167a7ff8bfb7cdd4b0b19852d84306faf38287950d1c9dd5e943
MD5 05b8e709e989b235cc38ddd1209b0937
BLAKE2b-256 e5f115578ff602182e68a4965294cf3b00a45a8d80f9fd95e7cd7d9c3a6ec44e

See more details on using hashes here.

File details

Details for the file specular_differentiation-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for specular_differentiation-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e604111263d7d52e3f9e053c1588b30d280ead0b2d139cccd8a1bfa84e693d3c
MD5 6e33b3de24f1668b9811ad06a000da53
BLAKE2b-256 8b9eb2b1cbf149dbc7f805ce3bcf033c5fabef8176c11329c7f74034ea4b117e

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