Skip to content

Conversation

@AronT-TLV
Copy link
Member

Summary

Comprehensive improvements to mathematical notebooks and copilot instructions, including fixes for Symbolics.jl breaking changes, detailed circle derivations, and practical examples.

Key Changes

Symbolics.jl Numeric Evaluation Fixes

  • Fixed breaking change where Symbolics.value() no longer evaluates transcendental functions numerically
  • Documented two working methods:
    • Method 1: build_function(expr, vars, expression=Val{false}) for compiled functions
    • Method 2: Symbolics.value(expr, unwrap=true) for direct evaluation
  • Added fold=Val(true) to all substitute() calls
  • Fixed π display to show numeric values using Float64() conversion

Circle Mathematics

  • Added detailed circle-through-three-points derivation with step-by-step algebra
  • Standardized notation: [h,k] for circle center, [x,y] for points
  • Used LaTeX align environments for equation formatting
  • Added practical pizza example demonstrating circle calculations
  • Included r>1 polygon area calculations

Documentation Improvements

  • Restructured copilot instructions for clarity and actionability
  • Added explicit code examples for computational/plotting separation pattern
  • Expanded documentation patterns section with comprehensive style guidelines
  • Fixed markdown linting issues in Circles documentation

Testing

  • All existing tests continue to pass
  • Notebook examples verified to work correctly
  • Documentation builds successfully

Files Changed

  • notebooks/Basics.ipynb: Symbolics fixes, circle derivation, pizza example
  • .github/copilot-instructions.md: Comprehensive restructuring and expansion
  • docs/src/Geometry/04 Circles.md: Linting fixes

- Basic definitions: circle, center, radius, diameter, chord, arc, circumference
- Fundamental measurements: circumference (C = 2πr) and area (A = πr²) with derivations
- Parts of a circle: chords, arcs (minor/major/semicircle), sectors, and segments with formulas
- Circle equations: standard form, parametric form, and general form
- Angles in circles: central angles, inscribed angles, and angle relationships
- Common theorems: chord properties, tangent properties, and Thales' theorem
- Applications: geometry, trigonometry, engineering, physics, and real-world uses
- All mathematical notation uses LaTeX (degree signs as ^\circ)
- Comprehensive MathWorld links for all key terms
- Follows same documentation pattern as Triangles and Quadrilaterals chapters
- Added alternative circle definition via three non-collinear points (circumcircle)
- Added comprehensive Angle Measurement section explaining radians and degrees
- Defined radian as natural angular unit (arc length = radius)
- Added conversion formulas between radians and degrees
- Added centered HTML table with common angle conversions (90°, 180°, 270°, 360°)
- Reorganized Arc Length as its own subsection for better structure
- All degree symbols use LaTeX notation (^\circ)
- Add Circles section with step-by-step derivation of circle through three points
- Use standard notation: [h,k] for center, [x,y] for points
- Add aligned equations for clear step-by-step algebra
- Fix Symbolics.jl numeric evaluation using build_function with expression=Val{false}
- Document alternative method using Symbolics.value with unwrap parameter
- Preserve both methods for learning purposes
- Update all substitute() calls to include fold=true parameter
- Ensures proper evaluation of numeric expressions
- Completes the Symbolics.jl numeric evaluation fixes
- Convert π from Irrational type to Float64 for numeric display
- Ensures the value prints as decimal approximation rather than symbol
- Include radius calculation for r>1 case
- Complete the polygon area calculation examples
- Reorganize into clearer sections (Overview, Core Architecture, Critical Patterns)
- Add explicit code examples for computational/plotting separation pattern
- Document both Symbolics.jl numeric evaluation methods (substitute+value and build_function)
- Expand documentation patterns section with comprehensive style guidelines
- Add mathematical concept documentation structure guidelines
- Include MathWorld linking conventions and visual element guidance
- Streamline CI/CD pipeline descriptions
- Improve overall clarity and actionability
- Add practical pizza example demonstrating circle through three points
- Fix markdown linting issues in Circles documentation
- Calculate pizza center and radius from three edge points
- Verify circle equation with all three points
@AronT-TLV AronT-TLV merged commit efaf53a into main Nov 26, 2025
3 checks passed
@AronT-TLV AronT-TLV deleted the feature/circle-study-and-documentation branch November 26, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants