Skip to content

Commit

Permalink
fix missing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AronT-TLV committed Oct 1, 2024
1 parent f673ca6 commit afc9c1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/linear_algebra_transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ end
value of Matrix with an actual vector x
"""
function projection_matrix(x::Vector)
@variables u v
Symbolics.value.(substitute.(projection_matrix_symbolic(), (Dict(u =>x[1], v=> x[2]), )))
end
"""
function projection_matrix_polar(θ::Number) -> Matrix
value of Matrix with an actual value for the angle of the vector
"""
function projection_matrix_polar(n::Number)
@variables u v θ
Symbolics.value.(substitute.(projection_matrix_symbolic_polar(), θ => deg2rad(n),))
end

0 comments on commit afc9c1a

Please sign in to comment.