Tag

math

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Overview of Common Python Standard Library Modules

This article provides practical code examples for using key Python standard library modules—including os, sys, json, datetime, re, math, collections, urllib, random, and logging—to perform common tasks such as file operations, system info, data parsing, date handling, pattern matching, calculations, data structures, web requests, random generation, and logging.

DateTimeJSONOS
0 likes · 4 min read
Overview of Common Python Standard Library Modules
Test Development Learning Exchange
Test Development Learning Exchange
May 24, 2024 · Fundamentals

Python Decorators for Mathematical Operations: Examples and Use Cases

This article introduces Python decorators tailored for mathematical functions, presenting four practical examples—a timing decorator, a simple automatic differentiation decorator, a result‑caching decorator, and a random‑noise decorator—each accompanied by complete code snippets and explanations.

CachingPerformancePython
0 likes · 4 min read
Python Decorators for Mathematical Operations: Examples and Use Cases
Java Tech Enthusiast
Java Tech Enthusiast
Apr 14, 2024 · Fundamentals

latexify-py: Generate LaTeX Formulas from Python Functions

latexify-py is a Python library that converts Python functions into LaTeX mathematical expressions, allowing you to install it via pip, check its version, decorate functions like a quadratic solver with @latexify.function to obtain both numeric results and the corresponding LaTeX formula, with source code available on GitHub.

LaTeXPythonTutorial
0 likes · 3 min read
latexify-py: Generate LaTeX Formulas from Python Functions
php中文网 Courses
php中文网 Courses
Dec 1, 2023 · Backend Development

Using the ceil() Function in PHP to Round Numbers Upward

This article explains PHP's ceil() function, detailing its syntax, parameters, and behavior for rounding numbers upward, and provides three clear code examples demonstrating its use with positive, negative, and integer values, along with the expected output for each case.

PHPbackendceil
0 likes · 3 min read
Using the ceil() Function in PHP to Round Numbers Upward
Model Perspective
Model Perspective
Aug 22, 2023 · Fundamentals

Unlock Free Math Literature: Top Online Databases & Search Engines

Beyond chatting, video streaming, and online shopping, the internet offers powerful academic tools, and this guide lists essential online databases and search engines that let students, researchers, and librarians efficiently locate valuable mathematics journals, articles, and e‑books.

academic resourcesliteraturemath
0 likes · 5 min read
Unlock Free Math Literature: Top Online Databases & Search Engines
php中文网 Courses
php中文网 Courses
Aug 17, 2023 · Backend Development

How to Use PHP's pow() Function for Exponential Calculations

This article explains PHP's pow() function, its syntax, parameter meanings, and demonstrates how to compute powers for positive, negative, fractional, and zero values with code examples while noting its floating‑point return behavior and special cases like INF and NAN.

ExponentialPHPbackend
0 likes · 4 min read
How to Use PHP's pow() Function for Exponential Calculations
php中文网 Courses
php中文网 Courses
Aug 15, 2023 · Backend Development

Using PHP fmod() Function to Compute Floating‑Point Remainder

The article explains PHP's fmod() function for calculating the remainder of two floating‑point numbers, describes its syntax and parameter roles, provides multiple code examples—including handling of zero divisors and negative values—and notes that it returns a float or NAN when appropriate.

Floating PointPHPbackend
0 likes · 4 min read
Using PHP fmod() Function to Compute Floating‑Point Remainder
Selected Java Interview Questions
Selected Java Interview Questions
Feb 13, 2023 · Artificial Intelligence

ChatGPT’s Recent Upgrade Boosts Factual Accuracy and Math Skills

The latest OpenAI upgrade has markedly improved ChatGPT’s truthfulness and mathematical reasoning, allowing it to answer word‑count, puzzle, and calculus questions more accurately, though occasional errors remain, prompting mixed reactions and suggestions such as integrating WolframAlpha for deeper computation.

AIChatGPTFactualAccuracy
0 likes · 6 min read
ChatGPT’s Recent Upgrade Boosts Factual Accuracy and Math Skills
DaTaobao Tech
DaTaobao Tech
Aug 8, 2022 · Game Development

2D Vector Rotation: Theory and Implementation

Rotating a 2‑D vector is performed by multiplying it with the matrix [[cos θ, ‑sin θ],[sin θ, cos θ]], yielding the new coordinates (x cos θ ‑ y sin θ, x sin θ + y cos θ); a short JavaScript function implements this, turning [3,2] into [‑2,3] for a 90° counter‑clockwise rotation and also rotates the basis vectors.

2DJavaScriptRotation
0 likes · 8 min read
2D Vector Rotation: Theory and Implementation
Cognitive Technology Team
Cognitive Technology Team
Jul 30, 2022 · Fundamentals

Common Pitfalls of java.math.BigDecimal and How to Avoid Them

This article explains several common mistakes when using Java's BigDecimal—such as constructing it with a double, using valueOf, relying on equals for comparison, and misusing round—and provides correct alternatives like string constructors, valueOf with proper precision, compareTo, and setScale for reliable arithmetic.

Best PracticesBigDecimalFloating Point
0 likes · 6 min read
Common Pitfalls of java.math.BigDecimal and How to Avoid Them
IT Services Circle
IT Services Circle
Mar 14, 2022 · Fundamentals

Counting Isosceles Acute Triangles in a Regular n‑gon – Analysis and Java Solution

This article explains how to count the number of isosceles acute‑angled triangles whose vertices lie on the vertices of a regular n‑gon, discusses separate cases for even and odd n, handles duplicate equilateral triangles, and provides a correct Java implementation that avoids integer overflow.

JavaLeetCodealgorithm
0 likes · 8 min read
Counting Isosceles Acute Triangles in a Regular n‑gon – Analysis and Java Solution
IT Services Circle
IT Services Circle
Mar 7, 2022 · Fundamentals

Counting Isosceles Acute Triangles in a Regular n‑gon – Analysis and Java Solution

This article explains how to count the number of isosceles acute triangles whose vertices lie on a regular n‑gon (3 ≤ n ≤ 10⁷), derives separate formulas for even and odd n, handles duplicate equilateral cases, and provides a correct Java implementation that avoids overflow.

Javaalgorithmcoding
0 likes · 8 min read
Counting Isosceles Acute Triangles in a Regular n‑gon – Analysis and Java Solution
Laravel Tech Community
Laravel Tech Community
Mar 2, 2021 · Backend Development

PHP tan() Function – Returns the Tangent of an Angle in Radians

This article explains PHP’s tan() function, which returns the tangent of a given radian value, details its single float argument, describes the return value, and provides a simple example demonstrating its usage with the constant M_PI_4.

PHPbackendfunction
0 likes · 1 min read
PHP tan() Function – Returns the Tangent of an Angle in Radians
Laravel Tech Community
Laravel Tech Community
Feb 28, 2021 · Backend Development

PHP sqrt() Function – Returns the Square Root

The PHP sqrt() function returns the square root of a given float argument, returning NaN for negative inputs; the documentation details its syntax, parameter description, return value, and provides example code demonstrating usage with numbers like 9 and 10.

PHPbackendfunction
0 likes · 1 min read
PHP sqrt() Function – Returns the Square Root
Laravel Tech Community
Laravel Tech Community
Feb 25, 2021 · Backend Development

PHP sin() Function – Description, Parameters, Return Value, and Example

This article explains the PHP sin() function, detailing its signature, the radian‑based argument it accepts, the floating‑point sine value it returns, and provides example code demonstrating its usage and precision considerations.

ExamplePHPbackend
0 likes · 1 min read
PHP sin() Function – Description, Parameters, Return Value, and Example
Laravel Tech Community
Laravel Tech Community
Feb 22, 2021 · Backend Development

PHP rad2deg() Function – Convert Radians to Degrees

The rad2deg() PHP function converts a radian value to its equivalent angle in degrees, accepting a float parameter and returning the corresponding degree value, with an example showing the conversion of π/4 to 45 degrees.

PHPbackenddegrees
0 likes · 1 min read
PHP rad2deg() Function – Convert Radians to Degrees
Laravel Tech Community
Laravel Tech Community
Jan 27, 2021 · Backend Development

PHP hypot() Function – Calculate the Length of the Hypotenuse

The article explains PHP’s hypot() function, which computes the hypotenuse length of a right‑angled triangle given side lengths x and y (or the distance from the origin), details its parameters and return value, and provides sample code with expected output.

ExamplePHPbackend
0 likes · 2 min read
PHP hypot() Function – Calculate the Length of the Hypotenuse
Laravel Tech Community
Laravel Tech Community
Jan 21, 2021 · Backend Development

PHP exp() Function – Compute e Raised to a Given Power

This article explains the PHP exp() function, detailing its signature, parameter description, return value, and providing example code that demonstrates how to calculate e raised to a specified exponent, along with the resulting output.

PHPbackendexp
0 likes · 1 min read
PHP exp() Function – Compute e Raised to a Given Power
Laravel Tech Community
Laravel Tech Community
Jan 14, 2021 · Backend Development

PHP ceil() Function: Rounding Up to the Next Integer

This article explains PHP’s ceil() function, describing how it rounds a floating‑point number up to the smallest integer not less than the given value, details its parameter and return type, and provides example code with expected outputs.

PHPbackendceil
0 likes · 2 min read
PHP ceil() Function: Rounding Up to the Next Integer
Laravel Tech Community
Laravel Tech Community
Jan 7, 2021 · Backend Development

PHP asin() Function – Returns the Arcsine of a Value

The PHP asin() function returns the arcsine of a given float argument in radians, with detailed parameter description, return value explanation, and example code demonstrating usage with various inputs and their corresponding outputs.

ExamplePHPasin
0 likes · 2 min read
PHP asin() Function – Returns the Arcsine of a Value