dedekind 3.0.2__tar.gz → 3.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dedekind-3.0.2 → dedekind-3.0.4}/PKG-INFO +2 -2
- {dedekind-3.0.2 → dedekind-3.0.4}/README.md +1 -1
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Dedekind_Language_Specification.md +2 -2
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/What_Dedekind_Can_Currently_Do.md +1 -1
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/changelog.md +24 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/roadmap.md +11 -0
- dedekind-3.0.4/examples/dedekind/engineering/affine_units_demo.ddk +81 -0
- dedekind-3.0.4/examples/dedekind/engineering/logarithmic_units_demo.ddk +84 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/pyproject.toml +1 -1
- {dedekind-3.0.2 → dedekind-3.0.4}/run_examples.py +1 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/__init__.py +1 -1
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/lexer.py +1 -1
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/ml_runtime.py +326 -14
- dedekind-3.0.4/src/dedekind/runtime_modules/00_imports.py +243 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/01_classes.py +106 -4
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/05_uncertainty.py +16 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/07_dataframes.py +43 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/units_checker.py +45 -2
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind.egg-info/PKG-INFO +2 -2
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind.egg-info/SOURCES.txt +4 -0
- dedekind-3.0.4/tests/dedekind/affine_units_test.ddk +69 -0
- dedekind-3.0.4/tests/dedekind/logarithmic_units_test.ddk +52 -0
- dedekind-3.0.2/src/dedekind/runtime_modules/00_imports.py +0 -92
- {dedekind-3.0.2 → dedekind-3.0.4}/CONTRIBUTING.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/LICENSE +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/MANIFEST.in +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/NOTICE +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/SECURITY.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/bump_version.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Chemistry_Biology_Roadmap.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Console_KaTeX_Roadmap.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Dedekind_Research_and_Architecture.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Features_Implementation_Roadmap.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Fluid_Dynamics_Shape_Optimization.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Symbolic_Simplification_Roadmap.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Thermal_LBM_Convection.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/Underserved_Sciences_Roadmap.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/docs/language.md +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/basic_loops.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/conditional_logic.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/factorial_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/file_io_json.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/hello.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/logical_operators.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/basics/try_catch_slicing_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/bioinformatics_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/biology_growth.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/chemical_equilibrium.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/chemistry_arrhenius.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/chemistry_elements.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/chemistry_kinetics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/chemistry_units_radiation.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/dose_response.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/epidemiology_sir.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/lotka_volterra.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/md_lennard_jones_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/pharmacology_quickwins.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/chemistry_biology/scientific_arrhenius_plot.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/advanced_processing.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/algo_showcase.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/demo_geometry/area.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/demo_geometry/volume.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/economics_solow.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/generics_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/latex_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/matrix_gpu.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/multi_file_modules_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/music_intervals.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/native_benchmark.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/notebook_export_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/paper_table_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/plot_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/purity_check_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/pyimport_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/reproducibility_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/source_mapping_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/stdlib_modules_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/v1_4_features_showcase.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/compiler_features/v1_5_features_showcase.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/ac_filter_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/airfoil_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/bridge_topology_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/control_lti_example.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/differentiable_circuit_example.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/differentiable_filter_design.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/differentiable_ik_example.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/heat_diffusion_sparse.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/heat_sink_topology_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/imperial_units_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm3d_sphere_drag.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_fourier_airfoil_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_heat_exchanger.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_karman_benchmark.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_les_smagorinsky_tuning.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_mrt_high_reynolds.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_physical_cylinder.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_rayleigh_benard.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/lbm_shape_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/ns_chorin_ibm_cylinder.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/engineering/pid_tuning_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/gnn_materials_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/gnn_molecule_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/labeled_tensors_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/mnist_classifier.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/pinn_ode_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/pinn_oscillator_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/quantity_stripping_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/machine_learning/shape_annotations_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/abs_bars.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/at_operator_special_functions.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/autograd_showcase.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/dedekind_cuts_rings.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/geometric_algebra_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/graph_spectral_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/integrate_sym_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/integration.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/math_functions.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/optimize_milp_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/prime_generation.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/riemann_zeta_sums.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/scientific_fft_spectrum.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/sequences.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/sparse_iterative_solvers.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/symbolic_diff_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/symbolic_solve_series.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/tensor_science.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/vector_math.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/mathematics/volume_revolution.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/angle_units.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/constants_extended.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/crystallography_structure_refinement.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/differentiable_ode.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/geology_darcy.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/lagrange_hamilton.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/length_units_conversion.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/materials_jmak.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/new_constants_demo.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_advection.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_advection_diffusion.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_burgers.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_heat.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_maxwell.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_navier_stokes.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_reaction_diffusion.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/pde_wave.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/physical_units.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/quickwins_units.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/relativity_physics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/scientific_damped_oscillator.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/scientific_gravitational_potential.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/scientific_ricci_plot.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/scientific_wave_superposition.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/signal_physics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/space_orbit_optimization.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/temp_unit_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/universal_constants.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/user_defined_units.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/physics_astronomy/v1_6_2_new_units.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/quantum/quantum_bell.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/quantum/quantum_grover.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/quantum/quantum_rotations.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/quantum/quantum_shapes.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/quantum/quantum_units.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/quantum/quantum_vqe.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/biostatistics_quickwins.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/curve_fitting.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/dirichlet_distribution_function.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/distributions_extended.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/hmc_fitting.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/linear_regression.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/numerics_statistics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/probabilistic.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/stats_binom_ttest.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/examples/dedekind/statistics/uncertainty_propagation.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/run_tests.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/setup.cfg +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/aot_compiler.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/ast_nodes.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/build_runtime.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/cli.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/codegen.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/compiler.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/install_kernel.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/latex_export.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/mlir_codegen.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/parser.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/purity_check.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/reproducibility.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/02_tensors.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/03_solvers.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/04_math.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/06_io.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/08_advanced.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/09_publishing.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/09_signals.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/10_robotics.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/12_fluid_dynamics.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/14_structural.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/15_thermal.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/16_space.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/runtime_modules/17_atomic.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/server.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/simplify.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/atomic.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/biology.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/chemistry.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/fluid_dynamics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/imperial.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/math.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/ml.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/physics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/quantum.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/robotics.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/signals.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/space.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/stats.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/structural.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/stdlib/thermal.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind/symbolic_diff.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind.egg-info/dependency_links.txt +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind.egg-info/entry_points.txt +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind.egg-info/requires.txt +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind.egg-info/top_level.txt +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind_jupyter_kernel/__init__.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind_jupyter_kernel/__main__.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind_jupyter_kernel/kernel.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind_jupyter_kernel/kernelspec/kernel.json +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/src/dedekind_jupyter_kernel/run_dedekind_kernel.py +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/assert_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/astrophysics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/at_operator_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/bayes_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/benchmark_profile_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/bioinformatics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/control_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/crystallography_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/dataframe_csv_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/diff_sym_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/dsp_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/electronics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/fem_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/fluid_dynamics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/generics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/geometric_algebra_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/geosciences_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/graph_laplacian_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/graph_shape_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/imperial_units_and_constants_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/integrate_sym_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/jacobian_hessian_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/jit_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/kern_algorithms_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/la_primitives_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/labeled_tensors_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/lbm3d_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/lbm_fourier_shape_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/lbm_les_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/lbm_shape_opt_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/life_sciences_phase1_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/life_sciences_phase2_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/life_sciences_phase3_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/md_simulate_lj_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/molecular_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/multi_file_modules_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/notebook_export_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/ns_ibm_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/number_theory_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/optimization_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/optimize_milp_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/paper_table_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/partial_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/purity_check_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/pyimport_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/quantity_stripping_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/quantum_circuit_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/quantum_units_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/robotics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/sde_solve_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/seed_reproducibility_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/shape_annotations_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/signature_units_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/simplify_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/space_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/sparse_iterative_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/special_functions_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/stdlib_biology_math_ml_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/stdlib_chemistry_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/stdlib_physics_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/stdlib_stats_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/stoichiometry_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/structural_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/symbolic_solve_series_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/thermal_lbm_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/thermal_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/try_catch_slicing_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/unit_plot_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/units_ph_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/use_module_test.ddk +0 -0
- {dedekind-3.0.2 → dedekind-3.0.4}/tests/dedekind/user_defined_units_test.ddk +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dedekind
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
4
|
Summary: Dedekind: a programming language for scientific computing with native units, autograd, and a LaTeX-from-AST workflow.
|
|
5
5
|
Author: Dedekind Contributors
|
|
6
6
|
Author-email: Mario Michael Heinrich <heinrich.mario.m@gmail.com>
|
|
@@ -382,7 +382,7 @@ Compile and run every example at once:
|
|
|
382
382
|
|
|
383
383
|
## Status, roadmap, history
|
|
384
384
|
|
|
385
|
-
- Current release: **v3.0.
|
|
385
|
+
- Current release: **v3.0.4** (May 2026)
|
|
386
386
|
- Roadmap: [docs/roadmap.md](docs/roadmap.md)
|
|
387
387
|
- Full changelog: [docs/changelog.md](docs/changelog.md)
|
|
388
388
|
- Formal spec: [docs/Dedekind_Language_Specification.md](docs/Dedekind_Language_Specification.md)
|
|
@@ -125,7 +125,7 @@ Compile and run every example at once:
|
|
|
125
125
|
|
|
126
126
|
## Status, roadmap, history
|
|
127
127
|
|
|
128
|
-
- Current release: **v3.0.
|
|
128
|
+
- Current release: **v3.0.4** (May 2026)
|
|
129
129
|
- Roadmap: [docs/roadmap.md](docs/roadmap.md)
|
|
130
130
|
- Full changelog: [docs/changelog.md](docs/changelog.md)
|
|
131
131
|
- Formal spec: [docs/Dedekind_Language_Specification.md](docs/Dedekind_Language_Specification.md)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Language Specification v3.0**
|
|
4
4
|
Mario Michael Heinrich · github.com/Engineer1080
|
|
5
|
-
Last revised: May 2026 · Tracks v0.6 (Physical Units), v0.7 (ODE), v0.8 (Probabilistic, PDE), v0.9 (Distributions, Integration), v0.9.1 (Documentation, Run-Examples), v0.9.2 (pi, e, CODATA), v0.9.3 (Uncertainty, Fitting), v0.9.4 (HMC, LaTeX-Export), v0.9.5 (Better Error Messages, Compile-time Units), v0.9.6 (Math Functions), v0.9.7 (Chemistry/Biology: mol, L, M, ppm), v0.9.8 (Convenience, Elements, File I/O, Network, JSON), v1.0.0 (Release), v1.0.1–v1.0.6 (Patch), v1.2.6 (Angle rad/deg, deg_to_rad, rad_to_deg), v1.2.7 (Dirichlet Distribution, dirichlet_function), v1.2.8 (Dedekind Cuts, Dedekind Rings, Riemann-Zeta, Riemann Sums), v1.2.9 (Absolute Value Bars, Solids of Revolution, Logical Operators), v1.3.0 (integrate_sym, Lagrange/Hamilton, Lotka-Volterra, Chemical Equilibrium), v1.3.1 (Medicine, Pharmacology, Epidemiology), v1.4.0 (Module System `use`, Seed/data_hash, DataFrame+CSV/Parquet/HDF5/NetCDF, Unit-aware Plots, `@units` Signatures with `fn f(x: [m]) -> [J]`, Dict Literals), v1.5.0 (benchmark/profile/time_block, JIT (torch.compile), SDE Solve (Euler-Maruyama, Milstein), Least Squares, Constrained Minimization, MILP, FEM Primitives mesh_unit_square/fem_assemble_*/fem_poisson_2d, `arange` int64), v1.6.0 (solve_sym/simplify_sym/series, CG/GMRES/BiCGSTAB + Jacobi/ILU Preconditioner, Export Notebook (HTML/MD), print_table (markdown/latex/csv/plain) with UncertainQuantity-±), v1.7.0 (Standard Library Modules physics/stats/chemistry/biology/math/ml via `use`, Custom Units `unit NAME = FACTOR[basis]` with Chaining & Compile-time Registration, Quantity Comparison Operators `<` `<=` `>` `>=` `==` `!=` with Auto-Conversion), v1.8.0 (Source Mapping for Runtime Errors — Tracebacks show `.ddk` lines + Code Excerpt; `pyimport <mod[.sub]> [as alias]` escape hatch to PyPI; `dedekind_exec` Helper in `compiler.py`), v1.8.1 (Purity Check: `print`/`plot`/`write_file`/`http_*`/I/O Built-ins in `jit`/`grad`/`fit`/`metropolis`/`hmc`/`sde_solve` arguments are transitively detected and blocked at compile time; Opt-out via `--no-purity-check`), v1.9.0 (Shape Annotations `Scalar`/`Vector[n]`/`Matrix[m,n]`/`Tensor[...]` with Symbolic Dimensions, bound and consistency-checked per call; `unwrap(x)` strips Quantity/UncertainQuantity wrapper for Hot-path Performance), v1.10.0 (PINN Primitive `partial(u, x, order=n)` for ∂u/∂x via Autograd, complementing `grad(fn, x)`; `fit()` hardening for PINN data lists with mixed shapes and collocation grad reset), v1.11.0 (`graph_laplacian(adj, normalized=False)` for combinatorial and normalized Laplacian matrix; dense/sparse input, directly usable in CG/GMRES/BiCGSTAB/EIGH), v1.12.0 (`Graph[N, E]` shape annotation for torch_geometric.data.Data-like objects; symbolic node/edge consistency; combinable with unit annotations on other arguments), v1.13.0 (Declarative MILP DSL via `Variable(name, lower, upper, integer)` and `optimize_milp(objective, constraints, sense)` with Operator Overloading and unit-aware constraints), v1.14.0 (Molecular Dynamics bridge `md_simulate_lj(...)` via OpenMM with dimension-validated force field parameters; new MD units nm/Angstrom/pm, amu, fs/ps/ns, and new dimension molar_energy with kJ/mol/kcal/mol/eV/Hartree), v1.15.0 (`LabeledTensor[lat, lon, time]` shape annotation for xarray.DataArray; `labeled_tensor(data, dims, coords, attrs)` for construction; axis name validation order-irrelevant), v1.16.0 (Bioinformatics Quick-Wins: `Sequence[DNA]/Sequence[RNA]/Sequence[Protein]` with Alphabet Validation, native bio built-ins gc_content/transcribe/translate/reverse_complement/k_mer_count, Cheminformatik via pyimport rdkit with smiles_descriptors/lipinski_rule_of_five), v1.17.0 (Language maturity: `try { ... } catch e { ... }` error handling, Python-style slicing `x[a:b]/x[:b]/x[a:]/x[::s]/x[a:b:s]/x[:]`), v1.18.0 (3D Geometric/Clifford Algebra G(3,0) native: `MultiVector` class with 8 components, constructors `scalar/vector/bivector/pseudoscalar/rotor`, operations `wedge/dot/reverse/grade/norm`, `rotate(v, R)` sandwich product), v1.19.0 (Multi-File Modules: `use foo.bar.baz` -> `modules/foo/bar/baz.ddk`; `pub fn` for export control with backward-compatible legacy mode), v1.20.0 (Generics / Type Parameters `fn name<T, U, ...>(args)` with polymorphic unit variables, auto-conversion on compatible dimension, enforced by the compiler — unlike Python's purely documentation-only `typing.TypeVar`), v1.21.0 (Quantum Computing Bridge: native QuantumCircuit class, pure Statevector simulator, Bell/GHZ/Grover convenience, VQE optimizer, Quantum Information utilities fidelity/entropy_von_neumann/schmidt_rank, Shape Annotations Qubit[N]/StateVec[N], units eV/meV/THz, optional Qiskit export), v2.0.0 (Release, Code Cleanup & Unification, Geosciences & Meteorology), v2.1.0 (Electrical Engineering & Control Theory), v2.2.0 (Differentiable Engineering: CFD, Heat Transfer, Structural Mechanics, Control), v2.3.0 (Space Physics & Orbital Mechanics), v2.9.0 (Library Consolidation, NUTS & VI, PyPI distribution), v3.0.0 (First Stable PyPI Release), v3.0.1 (UX Enhancements & Windows Fixes), v3.0.2 (Imperial/Custom Units & Fundamental Constants)
|
|
5
|
+
Last revised: May 2026 · Tracks v0.6 (Physical Units), v0.7 (ODE), v0.8 (Probabilistic, PDE), v0.9 (Distributions, Integration), v0.9.1 (Documentation, Run-Examples), v0.9.2 (pi, e, CODATA), v0.9.3 (Uncertainty, Fitting), v0.9.4 (HMC, LaTeX-Export), v0.9.5 (Better Error Messages, Compile-time Units), v0.9.6 (Math Functions), v0.9.7 (Chemistry/Biology: mol, L, M, ppm), v0.9.8 (Convenience, Elements, File I/O, Network, JSON), v1.0.0 (Release), v1.0.1–v1.0.6 (Patch), v1.2.6 (Angle rad/deg, deg_to_rad, rad_to_deg), v1.2.7 (Dirichlet Distribution, dirichlet_function), v1.2.8 (Dedekind Cuts, Dedekind Rings, Riemann-Zeta, Riemann Sums), v1.2.9 (Absolute Value Bars, Solids of Revolution, Logical Operators), v1.3.0 (integrate_sym, Lagrange/Hamilton, Lotka-Volterra, Chemical Equilibrium), v1.3.1 (Medicine, Pharmacology, Epidemiology), v1.4.0 (Module System `use`, Seed/data_hash, DataFrame+CSV/Parquet/HDF5/NetCDF, Unit-aware Plots, `@units` Signatures with `fn f(x: [m]) -> [J]`, Dict Literals), v1.5.0 (benchmark/profile/time_block, JIT (torch.compile), SDE Solve (Euler-Maruyama, Milstein), Least Squares, Constrained Minimization, MILP, FEM Primitives mesh_unit_square/fem_assemble_*/fem_poisson_2d, `arange` int64), v1.6.0 (solve_sym/simplify_sym/series, CG/GMRES/BiCGSTAB + Jacobi/ILU Preconditioner, Export Notebook (HTML/MD), print_table (markdown/latex/csv/plain) with UncertainQuantity-±), v1.7.0 (Standard Library Modules physics/stats/chemistry/biology/math/ml via `use`, Custom Units `unit NAME = FACTOR[basis]` with Chaining & Compile-time Registration, Quantity Comparison Operators `<` `<=` `>` `>=` `==` `!=` with Auto-Conversion), v1.8.0 (Source Mapping for Runtime Errors — Tracebacks show `.ddk` lines + Code Excerpt; `pyimport <mod[.sub]> [as alias]` escape hatch to PyPI; `dedekind_exec` Helper in `compiler.py`), v1.8.1 (Purity Check: `print`/`plot`/`write_file`/`http_*`/I/O Built-ins in `jit`/`grad`/`fit`/`metropolis`/`hmc`/`sde_solve` arguments are transitively detected and blocked at compile time; Opt-out via `--no-purity-check`), v1.9.0 (Shape Annotations `Scalar`/`Vector[n]`/`Matrix[m,n]`/`Tensor[...]` with Symbolic Dimensions, bound and consistency-checked per call; `unwrap(x)` strips Quantity/UncertainQuantity wrapper for Hot-path Performance), v1.10.0 (PINN Primitive `partial(u, x, order=n)` for ∂u/∂x via Autograd, complementing `grad(fn, x)`; `fit()` hardening for PINN data lists with mixed shapes and collocation grad reset), v1.11.0 (`graph_laplacian(adj, normalized=False)` for combinatorial and normalized Laplacian matrix; dense/sparse input, directly usable in CG/GMRES/BiCGSTAB/EIGH), v1.12.0 (`Graph[N, E]` shape annotation for torch_geometric.data.Data-like objects; symbolic node/edge consistency; combinable with unit annotations on other arguments), v1.13.0 (Declarative MILP DSL via `Variable(name, lower, upper, integer)` and `optimize_milp(objective, constraints, sense)` with Operator Overloading and unit-aware constraints), v1.14.0 (Molecular Dynamics bridge `md_simulate_lj(...)` via OpenMM with dimension-validated force field parameters; new MD units nm/Angstrom/pm, amu, fs/ps/ns, and new dimension molar_energy with kJ/mol/kcal/mol/eV/Hartree), v1.15.0 (`LabeledTensor[lat, lon, time]` shape annotation for xarray.DataArray; `labeled_tensor(data, dims, coords, attrs)` for construction; axis name validation order-irrelevant), v1.16.0 (Bioinformatics Quick-Wins: `Sequence[DNA]/Sequence[RNA]/Sequence[Protein]` with Alphabet Validation, native bio built-ins gc_content/transcribe/translate/reverse_complement/k_mer_count, Cheminformatik via pyimport rdkit with smiles_descriptors/lipinski_rule_of_five), v1.17.0 (Language maturity: `try { ... } catch e { ... }` error handling, Python-style slicing `x[a:b]/x[:b]/x[a:]/x[::s]/x[a:b:s]/x[:]`), v1.18.0 (3D Geometric/Clifford Algebra G(3,0) native: `MultiVector` class with 8 components, constructors `scalar/vector/bivector/pseudoscalar/rotor`, operations `wedge/dot/reverse/grade/norm`, `rotate(v, R)` sandwich product), v1.19.0 (Multi-File Modules: `use foo.bar.baz` -> `modules/foo/bar/baz.ddk`; `pub fn` for export control with backward-compatible legacy mode), v1.20.0 (Generics / Type Parameters `fn name<T, U, ...>(args)` with polymorphic unit variables, auto-conversion on compatible dimension, enforced by the compiler — unlike Python's purely documentation-only `typing.TypeVar`), v1.21.0 (Quantum Computing Bridge: native QuantumCircuit class, pure Statevector simulator, Bell/GHZ/Grover convenience, VQE optimizer, Quantum Information utilities fidelity/entropy_von_neumann/schmidt_rank, Shape Annotations Qubit[N]/StateVec[N], units eV/meV/THz, optional Qiskit export), v2.0.0 (Release, Code Cleanup & Unification, Geosciences & Meteorology), v2.1.0 (Electrical Engineering & Control Theory), v2.2.0 (Differentiable Engineering: CFD, Heat Transfer, Structural Mechanics, Control), v2.3.0 (Space Physics & Orbital Mechanics), v2.9.0 (Library Consolidation, NUTS & VI, PyPI distribution), v3.0.0 (First Stable PyPI Release), v3.0.1 (UX Enhancements & Windows Fixes), v3.0.2 (Imperial/Custom Units & Fundamental Constants), v3.0.3 (Logarithmic Units & Decibels), v3.0.4 (Affine Temperature Units: degC/°C, degF/°F, delta_C/delta_F/delta_K with offset-aware arithmetic)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
---
|
|
@@ -93,7 +93,7 @@ Python-based compiler transpiling Dedekind AST to Python code; execution via a P
|
|
|
93
93
|
|
|
94
94
|
## 14. Conclusion
|
|
95
95
|
|
|
96
|
-
Dedekind aims to bridge productivity and performance for compute-intensive applications. This specification is updated to **v3.0.
|
|
96
|
+
Dedekind aims to bridge productivity and performance for compute-intensive applications. This specification is updated to **v3.0.4** to reflect current stable runtime behaviour and language features.
|
|
97
97
|
|
|
98
98
|
---
|
|
99
99
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
## Physics & Units
|
|
30
30
|
|
|
31
31
|
- **Unit literals:** SI base units m, kg, s, A, K, mol, cd; derived units (Pa, W, Hz, V, F, ohm, S, Wb, T, H, lm, lx, Gy, kat, M); chemistry: mol, L, M (= mol/L), ppm, bar, atm, g; radioactivity: Bq, Sv. **Angles:** rad, deg (SI supplement; automatic conversion). **Quick wins:** force (N, kN, MN), pressure (kPa, MPa), permeability (m², D, mD) for construction, materials, geology.
|
|
32
|
-
- **Arithmetic:** **Automatic conversion** in addition/subtraction for the same dimension; result in the unit of the first operand. Supported: **SI base** — length (m, cm, km, mm, dm), mass (kg, g, t, mg), time (s, min, h, ms), current (A, mA, kA, uA), temperature (K, mK), amount of substance (mol, mmol, kmol), luminous intensity (cd, mcd); **derived** — pressure (Pa, bar, atm), volume (L, mL, dm³, m³), energy (J, kJ, MJ, Wh, kWh), voltage (V, mV, kV), frequency (Hz, kHz, MHz, GHz), charge (C, mC, uC), resistance (ohm, kohm, Mohm), power (W, kW, MW); **angle** — rad, deg. Otherwise the same unit is required for +/-. Multiplication/division combines units; power with `^`. **Angle conversion:** `deg_to_rad(x)`, `rad_to_deg(x)` for scalar, tensor, or Quantity. **Display**: equal factors are combined (e.g. `m*m` → `m^2`, `m*m*m` → `m^3`); literals `1[m^2]`, `1[m^3]` are usable. Display is simplified (J, N, Pa, W, etc.).
|
|
32
|
+
- **Arithmetic:** **Automatic conversion** in addition/subtraction for the same dimension; result in the unit of the first operand. Supported: **SI base** — length (m, cm, km, mm, dm), mass (kg, g, t, mg), time (s, min, h, ms), current (A, mA, kA, uA), temperature (K, mK; **affine** scales degC/°C, degF/°F with offset-aware coercion; linear differences delta_C, delta_F, delta_K), amount of substance (mol, mmol, kmol), luminous intensity (cd, mcd); **derived** — pressure (Pa, bar, atm), volume (L, mL, dm³, m³), energy (J, kJ, MJ, Wh, kWh), voltage (V, mV, kV), frequency (Hz, kHz, MHz, GHz), charge (C, mC, uC), resistance (ohm, kohm, Mohm), power (W, kW, MW); **angle** — rad, deg. Otherwise the same unit is required for +/-. Multiplication/division combines units; power with `^`. **Angle conversion:** `deg_to_rad(x)`, `rad_to_deg(x)` for scalar, tensor, or Quantity. **Display**: equal factors are combined (e.g. `m*m` → `m^2`, `m*m*m` → `m^3`); literals `1[m^2]`, `1[m^3]` are usable. Display is simplified (J, N, Pa, W, etc.).
|
|
33
33
|
- **Physical constants (CODATA):** `c`, `G`, `h`, `hbar`, `k_B`, `k_e`, `e_charge`, `epsilon_0`, `mu_0`, `m_e`, `m_p`, `N_A`, `R_gas`, `alpha`, `sigma_SB`, `F_faraday` — all as `Quantity` with SI units.
|
|
34
34
|
- **Differentiable ODE:** `ode_solve(fun, y0, t)` (RK4/Euler); `linspace(start, stop, steps)`; gradients via `grad()` for physics-informed ML. **Lagrange/Hamilton:** `lagrange_ode_rhs(L)` — right-hand side from Lagrangian L(q,v) for ode_solve; `hamilton_ode_rhs(H)` — from Hamiltonian H(q,p). **Lotka-Volterra:** `lotka_volterra(x0, y0, a, b, c, d, t)` — predator-prey model.
|
|
35
35
|
- **Differentiable PDE:** `pde_heat_1d`, `pde_heat_2d` (heat equation); `pde_advection_1d`, `pde_advection_2d` (advection); `pde_wave_1d`, `pde_wave_2d` (wave equation); `pde_burgers_1d`, `pde_burgers_2d` (Burgers); `pde_reaction_diffusion_1d`, `pde_reaction_diffusion_2d` (reaction-diffusion); `pde_advection_diffusion_1d`, `pde_advection_diffusion_2d` (advection-diffusion); `pde_maxwell_1d`, `pde_maxwell_2d` (Maxwell, FDTD); `pde_navier_stokes_2d(u0, v0, x, y, t, nu)` (Navier-Stokes 2D incompressible, Chorin projection); finite differences + `ode_solve`.
|
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
Historical record of Dedekind releases. Most recent first.
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
### What's New in v3.0.4 (Affine Temperature Units)
|
|
7
|
+
|
|
8
|
+
The 3.0.4 release adds first-class support for affine temperature scales, closing the long-standing gap between Kelvin (a ratio scale) and Celsius/Fahrenheit (offset scales whose arithmetic is not multiplicative):
|
|
9
|
+
|
|
10
|
+
- **Absolute Temperature Points.** Added `degC` / `°C` (Celsius) and `degF` / `°F` (Fahrenheit) as affine units alongside the existing Kelvin scale. Literals like `20[degC]`, `68[°F]`, and `293.15[K]` compare equal across scales via automatic offset-aware coercion (e.g. `-40[degC] == -40[degF]`).
|
|
11
|
+
- **Temperature Differences.** Added linear delta units `delta_C`, `delta_degC`, `delta_F`, `delta_degF`, and `delta_K` for relative temperature changes. These compose multiplicatively with other quantities (e.g. heat capacity in `J/(kg*K)`), unlike the absolute points.
|
|
12
|
+
- **Offset-Correct Arithmetic.** Point ± difference yields a point (`20[degC] + 10[K]` → `30[degC]`); point − point yields a difference (`22[degC] − (−5)[degC]` → `27[delta_K]`); point + point is rejected at compile time, eliminating a class of bugs that silently corrupt thermodynamics code in unit-naive systems.
|
|
13
|
+
- **Function Signature Coercion.** `@units`-annotated signatures accept any temperature representation and coerce to the declared scale (e.g. `fn safety_margin_temp(temp: [degC], margin: [delta_C]) -> [degC]`).
|
|
14
|
+
- **Uncertainty Propagation.** `UncertainQuantity` correctly handles affine offsets — the standard deviation transforms linearly across scales while the mean transforms affinely.
|
|
15
|
+
- **Engineering Example & Tests.** Added `affine_units_demo.ddk` (heat-conduction scenario) and `affine_units_test.ddk` covering conversions, arithmetic rules, and signature coercion.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
### What's New in v3.0.3 (Logarithmic Units & Decibels)
|
|
20
|
+
|
|
21
|
+
The 3.0.3 release adds first-class support for logarithmic units and decibel arithmetic:
|
|
22
|
+
|
|
23
|
+
- **Logarithmic Units.** Added support for dimensionless ratios (`dB`, `dB_power`, `dB_amp`) and absolute levels (`dBW` relative to 1 W, `dBm` relative to 1 mW, `dBV` relative to 1 V, `dBuV` relative to 1 µV, and `dBSPL` relative to 20 µPa).
|
|
24
|
+
- **Decibel Arithmetic & Log-Linear Comparisons.** Supports adding/subtracting gain ratios (`dB`) to/from absolute levels (e.g. `10[dBW] + 3[dB]`), performing coherent power summation when adding absolute levels (e.g. `10[dBW] + 10[dBW] ≈ 13.01[dBW]`), and level subtraction yielding a ratio (e.g. `30[dBm] - 0[dBm] = 30[dB]`). Allows direct comparison between logarithmic and linear units (e.g. `30[dBm] == 1[W]`).
|
|
25
|
+
- **Function Signature Coercion.** Automatic coercion of function parameters and return values between linear and logarithmic dimensions (e.g. passing a linear value to a function expecting `dBW` or vice versa).
|
|
26
|
+
- **Engineering Example.** Added `logarithmic_units_demo.ddk` demonstrating these features in action.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
6
30
|
### What's New in v3.0.2 (Imperial/Custom Units & Fundamental Constants)
|
|
7
31
|
|
|
8
32
|
The 3.0.2 release adds support for Imperial/US customary units and fundamental physical constants:
|
|
@@ -96,6 +96,17 @@ The current `src/dedekind/mlir_codegen.py` only emits MLIR-style text and `src/d
|
|
|
96
96
|
* [ ] **Static Binary**: Replace the C++ stub generator in `aot_compiler.py` with real LLVM linking; produce standalone `.exe` / ELF without Python.
|
|
97
97
|
* [ ] **Verification**: Execute the AOT-compiled binaries on Windows, Linux, and macOS in CI.
|
|
98
98
|
|
|
99
|
+
### Phase 22: Natural Units for Particle Physics (proposed)
|
|
100
|
+
Dedekind already ships `eV`, `keV`, `MeV`, `GeV` as energy units and CODATA constants (`hbar`, `c`, `m_e`, `m_p`, `alpha`). What is missing is first-class support for the high-energy-physics convention ℏ = c = 1, under which length, time, mass, momentum and cross sections collapse onto powers of energy. Two design variants are being considered; user feedback from the v3.x release cycle will decide which (or both) ship.
|
|
101
|
+
|
|
102
|
+
**Variant A — Bridge constants (`use particle`, library-only).** SI remains the single source of truth. The module exposes precomputed bridge quantities such as `hbar_c = 197.3269804[MeV*fm]`, particle masses in their natural representation (`m_e_natural = 0.51099895[MeV]`, `m_p_natural = 938.272[MeV]`, …), and explicit converters `to_natural(q)` / `from_natural(x, target_unit)`. The compile-time dimension checker is untouched: `1[m] + 1[MeV]` stays a compile error, formulas keep their explicit `c` and `hbar` factors. Low implementation cost, fully additive, reversible.
|
|
103
|
+
|
|
104
|
+
**Variant B — Scope-switched dimension system (`@natural_units` decorator).** Within a marked function the dimension checker is reparameterized so that ℏ = c = 1 holds at the type level: `[length] ≡ [time] ≡ [energy]⁻¹` and `[mass] ≡ [momentum] ≡ [energy]` become legal identities. QFT-style formulas read as in textbooks (no notational `c²`/`ℏ/c` noise), and the compiler enforces explicit coercion (`to_si(...)`) at scope boundaries. Higher implementation cost (checker extension, scope tracking, coercion rules, interaction with generics and solvers), and a non-trivial design commitment that is hard to roll back once users depend on it.
|
|
105
|
+
|
|
106
|
+
* [ ] **Variant A**: ship `use particle` with bridge constants, particle masses, and `to_natural`/`from_natural`.
|
|
107
|
+
* [ ] **Variant B**: optional `@natural_units` scope, gated on demonstrated user demand from the v3.x release.
|
|
108
|
+
* [ ] **Examples**: Compton scattering, Mandelstam variables, Yukawa potential range, electroweak scale comparisons.
|
|
109
|
+
|
|
99
110
|
## 🔭 Beyond v1.0: Future Vision
|
|
100
111
|
|
|
101
112
|
Dedekind aims to become the "Standard Language for Nature's Laws." To achieve this, we are researching the native implementation of the following concepts:
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Demonstration of the new affine temperature units:
|
|
2
|
+
// - degC / °C (Celsius absolute point)
|
|
3
|
+
// - degF / °F (Fahrenheit absolute point)
|
|
4
|
+
// - delta_C / delta_F / delta_K (relative temperature differences)
|
|
5
|
+
// Demonstrates point conversions, comparisons, error-free subtraction yielding linear differences,
|
|
6
|
+
// and realistic thermodynamics calculations (heat conduction).
|
|
7
|
+
|
|
8
|
+
fn print_separator() {
|
|
9
|
+
print("---------------------------------------------")
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Function signature accepting Celsius and returning Celsius
|
|
13
|
+
fn safety_margin_temp(temp: [degC], margin: [delta_C]) -> [degC] {
|
|
14
|
+
return temp + margin
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
fn main() {
|
|
18
|
+
print("Dedekind Affine Temperature Units Demonstration")
|
|
19
|
+
print_separator()
|
|
20
|
+
|
|
21
|
+
// 1. Basic conversions & comparisons (auto-coercion)
|
|
22
|
+
print("1. Temperature Scale Conversions:")
|
|
23
|
+
t_celsius = 20.0[degC]
|
|
24
|
+
t_fahrenheit = 68.0[degF]
|
|
25
|
+
t_kelvin = 293.15[K]
|
|
26
|
+
|
|
27
|
+
print("20 °C is equal to 68 °F: ", t_celsius == t_fahrenheit)
|
|
28
|
+
print("20 °C is equal to 293.15 K: ", t_celsius == t_kelvin)
|
|
29
|
+
print("Is -40 °C equal to -40 °F? ", -40[degC] == -40[degF])
|
|
30
|
+
print_separator()
|
|
31
|
+
|
|
32
|
+
// 2. Arithmetic: Point +/- Difference -> Point
|
|
33
|
+
print("2. Adding differences to absolute temperatures:")
|
|
34
|
+
room_temp = 20.0[degC]
|
|
35
|
+
raise_by = 10.0[K] // 10 Kelvin difference
|
|
36
|
+
new_temp = room_temp + raise_by
|
|
37
|
+
print("20 °C warmed up by 10 K = ", new_temp)
|
|
38
|
+
|
|
39
|
+
// Using explicit delta units
|
|
40
|
+
t_f = 68.0[degF]
|
|
41
|
+
lower_by = 18.0[delta_F] // 18 °F difference
|
|
42
|
+
cooler_temp = t_f - lower_by
|
|
43
|
+
print("68 °F cooled down by 18 delta_F = ", cooler_temp)
|
|
44
|
+
print_separator()
|
|
45
|
+
|
|
46
|
+
// 3. Subtraction: Point - Point -> Difference
|
|
47
|
+
print("3. Temperature Difference (Vector subtraction):")
|
|
48
|
+
t_inside = 22.0[degC]
|
|
49
|
+
t_outside = -5.0[degC]
|
|
50
|
+
delta_t = t_inside - t_outside
|
|
51
|
+
print("22 °C minus -5 °C = ", delta_t) // Yields difference in Kelvin
|
|
52
|
+
print_separator()
|
|
53
|
+
|
|
54
|
+
// 4. Thermodynamics Application: Heat Conduction through a Wall
|
|
55
|
+
// Equation: Q = (k * A * delta_T) / d
|
|
56
|
+
print("4. Thermodynamics application (Heat Conduction):")
|
|
57
|
+
k_insulation = 0.04[W/m/K] // Thermal conductivity
|
|
58
|
+
wall_area = 15.0[m^2]
|
|
59
|
+
wall_thickness = 0.2[m] // 20 cm
|
|
60
|
+
|
|
61
|
+
// Celsius subtraction yields delta_T in K, compatible with W/(m*K)
|
|
62
|
+
dt = t_inside - t_outside
|
|
63
|
+
|
|
64
|
+
heat_loss = 0.0[W] + (k_insulation * wall_area * dt) / wall_thickness
|
|
65
|
+
print("Thermal Conductivity k: ", k_insulation)
|
|
66
|
+
print("Wall Area A: ", wall_area)
|
|
67
|
+
print("Wall Thickness d: ", wall_thickness)
|
|
68
|
+
print("Temp Difference dT: ", dt)
|
|
69
|
+
print("Calculated Heat Loss Q: ", heat_loss)
|
|
70
|
+
print_separator()
|
|
71
|
+
|
|
72
|
+
// 5. Signature coercion
|
|
73
|
+
print("5. Signature coercion in functions:")
|
|
74
|
+
t_high = safety_margin_temp(68.0[degF], 10.0[delta_C]) // Coerces 68 °F to 20 °C, adds 10 °C
|
|
75
|
+
print("20 °C + 10 delta_C margin = ", t_high)
|
|
76
|
+
print_separator()
|
|
77
|
+
|
|
78
|
+
print("Demo successfully completed!")
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
main()
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Demonstration of the new logarithmic units module:
|
|
2
|
+
// - dB, dBm, dBW, dBV, dBuV, dBSPL
|
|
3
|
+
// Demonstrates unit conversions, comparison, additions/subtractions, and parameter/return type coercion.
|
|
4
|
+
|
|
5
|
+
fn print_separator() {
|
|
6
|
+
print("---------------------------------------------")
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Function signature with logarithmic return and input constraints
|
|
10
|
+
fn calculate_amplifier_output(input_power: [dBW], gain: [dB]) -> [dBW] {
|
|
11
|
+
return input_power + gain
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Function signature with linear return and logarithmic input constraint
|
|
15
|
+
fn log_to_linear_power(power_dbw: [dBW]) -> [W] {
|
|
16
|
+
// Simply return the power_dbw, coercion system will convert it to [W]
|
|
17
|
+
return power_dbw
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
fn main() {
|
|
21
|
+
print("Dedekind Logarithmic Units Demonstration")
|
|
22
|
+
print_separator()
|
|
23
|
+
|
|
24
|
+
// 1. Basic conversions & comparison
|
|
25
|
+
print("1. Logarithmic vs Linear Conversions:")
|
|
26
|
+
p_linear = 1.0[W]
|
|
27
|
+
p_log_dbw = 0[dBW]
|
|
28
|
+
p_log_dbm = 30[dBm]
|
|
29
|
+
|
|
30
|
+
print("1.0 W is equal to 0 dBW: ", p_linear == p_log_dbw)
|
|
31
|
+
print("30 dBm is equal to 0 dBW: ", p_log_dbm == p_log_dbw)
|
|
32
|
+
print("0 dBW is equal to 1000 mW: ", p_log_dbw == 1000[mW])
|
|
33
|
+
print_separator()
|
|
34
|
+
|
|
35
|
+
// 2. Comparisons of levels
|
|
36
|
+
print("2. Comparisons of Levels:")
|
|
37
|
+
print("Is 30 dBm greater than 20 dBm? ", 30[dBm] > 20[dBm])
|
|
38
|
+
print("Is 0 dBW less than 10 dBW? ", 0[dBW] < 10[dBW])
|
|
39
|
+
print("Is 20 dBuV equal to 10 uV? ", 20[dBuV] == 10[uV])
|
|
40
|
+
print_separator()
|
|
41
|
+
|
|
42
|
+
// 3. Logarithm arithmetic: level +/- ratio (Gain)
|
|
43
|
+
print("3. Adding / Subtracting Gain:")
|
|
44
|
+
power_level = 10[dBW]
|
|
45
|
+
gain = 3[dB]
|
|
46
|
+
|
|
47
|
+
raised_power = power_level + gain
|
|
48
|
+
reduced_power = power_level - gain
|
|
49
|
+
|
|
50
|
+
print("10 dBW + 3 dB (gain) = ", raised_power)
|
|
51
|
+
print("10 dBW - 3 dB (attenuation) = ", reduced_power)
|
|
52
|
+
print_separator()
|
|
53
|
+
|
|
54
|
+
// 4. Logarithmic level addition (Power summation)
|
|
55
|
+
print("4. Power Summation (Adding two coherent power levels):")
|
|
56
|
+
// 10 dBW + 10 dBW (10 W + 10 W = 20 W ≈ 13.01 dBW)
|
|
57
|
+
summed_power = 10[dBW] + 10[dBW]
|
|
58
|
+
print("10 dBW + 10 dBW = ", summed_power)
|
|
59
|
+
print_separator()
|
|
60
|
+
|
|
61
|
+
// 5. Subtracting absolute levels yields a ratio in dB
|
|
62
|
+
print("5. Ratio Calculation (Subtracting two absolute levels):")
|
|
63
|
+
p1 = 30[dBm]
|
|
64
|
+
p2 = 0[dBm]
|
|
65
|
+
ratio_db = p1 - p2
|
|
66
|
+
print("30 dBm - 0 dBm = ", ratio_db)
|
|
67
|
+
print_separator()
|
|
68
|
+
|
|
69
|
+
// 6. Function signature coercion / transparent mapping
|
|
70
|
+
print("6. Function Signature Auto-Coercion:")
|
|
71
|
+
// Calculate output power using dB-typed function
|
|
72
|
+
// 1.0[W] is coerced to 0[dBW] automatically
|
|
73
|
+
out_power = calculate_amplifier_output(1.0[W], 10[dB])
|
|
74
|
+
print("Output power for 1 W input and 10 dB gain: ", out_power)
|
|
75
|
+
|
|
76
|
+
// Coerce logarithmic dBW back to linear Watt
|
|
77
|
+
out_power_watts = log_to_linear_power(out_power)
|
|
78
|
+
print("Output power in Watts: ", out_power_watts)
|
|
79
|
+
print_separator()
|
|
80
|
+
|
|
81
|
+
print("Demo successfully completed!")
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
main()
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "dedekind"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.4"
|
|
8
8
|
description = "Dedekind: a programming language for scientific computing with native units, autograd, and a LaTeX-from-AST workflow."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -95,6 +95,7 @@ def main():
|
|
|
95
95
|
exec_globals = {}
|
|
96
96
|
dedekind_exec(python_code, ddk_file=filepath, exec_globals=exec_globals, ddk_source=source)
|
|
97
97
|
output = out.getvalue()
|
|
98
|
+
sys.stdout = old_stdout
|
|
98
99
|
results.append((filename, True, None))
|
|
99
100
|
if args.verbose:
|
|
100
101
|
print(f"--- {filename} ---")
|
|
@@ -61,7 +61,7 @@ class Lexer:
|
|
|
61
61
|
('DOT', r'\.'), # .
|
|
62
62
|
('CARET', r'\^'), # ^ (contravariant index)
|
|
63
63
|
('UNDERSCORE', r'_'), # _ (covariant index, only when not in ID)
|
|
64
|
-
('ID', r'[A-Za-z][A-Za-z0-9_]*'), # Identifiers (mit _ z.B. check_value)
|
|
64
|
+
('ID', r'[A-Za-z°][A-Za-z0-9_°]*'), # Identifiers (mit _ z.B. check_value)
|
|
65
65
|
('NEWLINE', r'\n'), # Line endings
|
|
66
66
|
('SKIP', r'[ \t\r]+'), # Skip over spaces, tabs, and carriage returns
|
|
67
67
|
('MISMATCH', r'.'), # Any other character
|