Skip to main content

Questions tagged [julia]

The Julia programming language is fast, expressive and dynamic. By aggressively targeting technical computing it has become a robust general purpose language. It addresses the two-language problem by combining the ease of use of high-level languages such as R and Python with the performance of C and Fortran.

0 votes
1 answer
21 views

DifferentialEquations.jl - Spring mass damper system ODE

Is this the right way to write a spring mass damper system in julia using DifferentialEquations.jl? function smd(du, u, p, t) c, k, m = p du[1] = dx = u[2] du[2] = dv = -(c/m)*u[2] - (k/m)*...
BAR's user avatar
  • 16.7k
0 votes
1 answer
18 views

Strange linking problem when `dlopen` a library

I have some strange linking problem with a library which is dynamically loaded using dlopen. Precisely, I have a code that loads a library libmine.so (which is part of the code) that depends on Intel ...
Dmitry Kabanov's user avatar
1 vote
0 answers
27 views

Julia MixedModel in R: how to write a formula without an intercept?

TL/DR: is there a way to develop a formula without an intercept for a GeneralizedLinearMixedModel? I have a very peculiar modeling problem that requires a GLMM model statement without a fixed ...
Cory Overton's user avatar
1 vote
0 answers
38 views
+50

Negative exponent in plot in Julia

I have data with very small values A =[1.1222557035765826e-7, 2.651246968143401e-7, 1.7965534845544633e-7, 6.726776330241659e-7, 1.3723877581050262e-7, 2.392303846597451e-7, 1.7973640211865906e-7, 6....
jayjay's user avatar
  • 105
0 votes
0 answers
20 views

custom linear interpolation in julia

I'm trying to make the following algorithm more concise: function tri_linear_interpolation(nx::Int, x::Vector{Float64}, ny::Int, y::Vector{Float64}, nz::Int, z::Vector{Float64}, f::Array{Float64, 3}, ...
RoosterCrossing's user avatar
1 vote
1 answer
43 views

Is there a way to rename the bands of a Raster in Rasters.jl?

This is the Raster I am using: 30097×19617×4 Raster{UInt8,3} │ ├───────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────── dims ┐ ...
Vincent Braun's user avatar
1 vote
1 answer
30 views

Getting MethodError: no method matching *(::Vector{Float64}, ::Vector{Float64}) on julia FractionalDiffEq

used the FractionalDiffEq package correctly below as said in the documentation text but kept on getting the error above. P.S: I am running the code in google colabs using FractionalDiffEq function ...
osatohanmen ogbeide's user avatar
0 votes
0 answers
29 views

ways for storing and organizing constants in julia [closed]

I’m new to julia and kind of new to programming. I’m writing a simulation in Julia that uses a lot of constants, many of which will be called millions of times. I’m wondering about the best way to ...
RoosterCrossing's user avatar
0 votes
0 answers
25 views

Too much whitespace in my Julia gif (using Plots.jl)

I'm using Plots.jl to create some animation but the resulting .gif file has too much white space surrounding it. For example, I took the Lorenz Attractor example directly from the documentation and ...
RyArazi's user avatar
  • 351
0 votes
1 answer
45 views

Julia: Easiest and efficient way to check if each element of a vector is in another list? .∈ doesn't seem to work

In Julia, assuming I have a vector and a list of candidates: x = [1, 2, 3, 4, 5] targetlist = [1, 2] I would like to iteratively check for each element of the vector if it is contained in the target ...
Dominique Makowski's user avatar
0 votes
0 answers
23 views

Integration using BigFloat in Julia

I have a problem with understanding how calculation with BigFloat works in Julia. I want to calculate an integral using the DoubleExponentialFormulas QuadDE function. I thought this part would work: ...
Student Debil's user avatar
1 vote
1 answer
37 views

Wrong function call when solving for steady state using julia's NonlinearSolve

I am using NonlinearSolve to solve a steady state problem. When I do prob = SteadyStateProblem(eoms!, σ₀, p) sol = solve( prob, SSRootfind(), abstol = slv.abstol, reltol = slv.reltol, )...
mrW's user avatar
  • 47
1 vote
2 answers
55 views

Most efficient way to access the off-diagonal entries of a matrix in Julia

Suppose I have a 200 x 200 zero matrix in Julia. What is the most efficient way to set the off-diagonal elements of the matrix using the elements of another matrix? I have written this code: function (...
dbrane's user avatar
  • 149
0 votes
0 answers
28 views

Read a S2P file with Julia

I'd like to read a S2P file (containing a frequency response) with Julia. What is the best way to do it? Is there an equivalent of "scikit-rf" (Python) in Julia? I saw: SParameters and ...
Dylan Chevalier's user avatar
0 votes
0 answers
27 views

Julia - Quickly import method from package in module

In Julia, I want to use the Optimizer method from Gurobi in a module which I then use in a Julia script. Importing this method (either with the line using Gurobi: Optimizer or import Gurobi: Optimizer)...
Breizhen's user avatar

15 30 50 per page
1
2 3 4 5
849