Coder Social home page Coder Social logo

Hi There 👋 Welcome To My GitHub ❤️ Morad Alkhatib ❤️





Top Langs

Typing SVG

iter <- 10000 p <- runif(iter) coord <- matrix(c(0, 0), ncol = 1) df <- rbind(data.frame(), t(coord)) for (i in 1:iter) { if (p[i] <= 0.05) { m <- matrix(c(0, 0, 0, 0.16), nrow = 2, ncol = 2) const <- matrix(c(0, 0), ncol = 1) } else if (p[i] > 0.05 && p[i] <= 0.86) { m <- matrix(c(0.85, -0.04, 0.04, 0.85), nrow = 2, ncol = 2) const <- matrix(c(0, 1.6), ncol = 1) } else if (p[i] > 0.86 && p[i] <= 0.93) { m <- matrix(c(0.2, 0.23, -0.26, 0.22), nrow = 2, ncol = 2) const <- matrix(c(0, 1.6), ncol = 1)

} else {
    m <- matrix(c(-0.15, 0.26, 0.28, 0.24), nrow = 2, ncol = 2)
    const <- matrix(c(0, 0.44), ncol = 1)
}
coord <- m %*% coord + const
df <- rbind(df, t(coord))

}

plot(x = df[, 2], y = df[, 1], plt = c(0, 10, -5, 5), cex = 0.1, asp = 1)

Morad Alkhatib's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.