Skip to content

Instantly share code, notes, and snippets.

View mforets's full-sized avatar
🏠
Working from home

Marcelo Forets mforets

🏠
Working from home
View GitHub Profile
@mforets
mforets / plot_sage.md
Last active February 23, 2024 10:41
plotting cheatsheet for SageMath
@mforets
mforets / discrete_seq.jl
Last active June 19, 2022 02:21
Discrete sequence using Taylor models
using ReachabilityAnalysis
using ReachabilityAnalysis.TaylorModels
using ReachabilityAnalysis.TaylorSeries
using Random
using StatsBase
# -----------------
# Numbers
# -----------------
@mforets
mforets / intersections.jl
Last active September 27, 2021 03:23
Intersection of trajectories
using Plots
using Unitful
using DifferentialEquations
using GeneralAstrodynamics
using LazySets
# Find a periodic orbit near Earth (orbit, period)
Oₑ, Pₑ = halo(SunEarth; Az=100_000u"km", L=2)
# Find a periodic orbit near Jupiter (orbit, period)
@mforets
mforets / plot_3d_makie.jl
Created April 21, 2021 20:07
Hyperrectangle plots with Makie
### Code
```julia
function makie_3d_plot(scene, data::Vector{IntervalBox{3, N}}, color=nothing) where N
# plotting a single box in 3D doesn't work as expected
@assert length(data) > 1
positions = [Point3f0(mid(X)) for X in data]
scales = [Vec3f0(diam.(X)) for X in data]
@mforets
mforets / cursos.md
Created November 13, 2020 16:25
Cursos DMA

Cursos ofrecidos por el DMA (CURE, Maldonado) para el Diploma de Espec. en Matem.

Nombre del curso Semestre dictado Docente encargado
Álgebra Lineal Numérica 1er semestre 2020 Marcelo Forets
@mforets
mforets / CONFLIST_2020.md
Last active October 27, 2020 16:51
CONFLIST_2020
@mforets
mforets / onsas_tests.sh
Last active September 1, 2020 17:38
ONSAS tests
$ ./runTests.sh
keyfiles =
{
[1,1] = onsasExample_staticVonMisesTruss_test.m
[1,2] = onsasExample_uniaxialExtension_test.m
[1,3] = onsasExample_uniformCurvatureCantilever_test.m
}
totalRuns = 3
@mforets
mforets / julia_st.md
Created June 17, 2020 18:31
Julia st

Status

mforets@localhost arch-comp-linear-2020]$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
 | | |_| | | | (_| | | Version 1.4.1 (2020-04-14)
@mforets
mforets / EMBrake_new.md
Last active May 7, 2020 19:59
EMBrake_new

#using Plots, BenchmarkTools, StaticArrays #using Revise, ReachabilityAnalysis #const RA = ReachabilityAnalysis include("/home/mforets/.julia/dev/ReachabilityAnalysis/test/models/hybrid/embrake.jl") LazySets.deactivate_assertions()

function LazySets.diameter(R::ReachabilityAnalysis.AbstractLazyReachSet; vars::Int) overapproximate(project(R, vars=vars), Interval) |> set |> diameter end