Tetrahedron radius ratio: find radius ratio

This commit is contained in:
Aaron Fenyes 2024-07-17 22:45:17 -07:00
parent 96ffc59642
commit 01f44324c1

View File

@ -1,5 +1,6 @@
include("Engine.jl")
using LinearAlgebra
using SparseArrays
using Random
@ -87,4 +88,9 @@ else
println("\nFailed to reach target accuracy")
end
println("Steps: ", size(history.scaled_loss, 1))
println("Loss: ", history.scaled_loss[end], "\n")
println("Loss: ", history.scaled_loss[end])
if success
infty = BigFloat[0, 0, 0, 0, 1]
radius_ratio = dot(infty, Engine.Q * L[:,5]) / dot(infty, Engine.Q * L[:,6])
println("\nCircumradius / inradius: ", radius_ratio)
end