julia Questions
2
Solved
When debugging or running julia code in REPL, I usually see error messages showing ... at ./REPL[161]:12 [inlined].... The number 161 means the 161-th evaluation in REPL, I guess. So my question is...
6
Solved
I've been wandering for a while in the docs and in forums and I haven't found a built in method/function to do the simple task of deleting an element in an array. Is there such built-in function?
...
3
I started working recently with a team whose members variably prefer Python, R, and Julia (in order of popularity). We are translating a set of hydrology modules built by various team members into ...
Beliabelial asked 16/10, 2023 at 12:27
3
Solved
I am trying to implement an iterator in Julia, but get an exception when the for-loop tries to call start already.
Here is what I get (I ran include(...), then using RDF):
julia> methods(start...
Verile asked 30/7, 2014 at 3:58
8
Solved
Is there a way to convert a floating number to int in Julia? I'm trying to convert a floating point number to a fixed precision number with the decimal part represented as 8bit integer. In order to...
Laughlin asked 10/11, 2016 at 4:47
2
Solved
Say I have two functions:
f(x) = x^2
g(x) = x + 2
Their composition is the function
h(x) = f(g(x))
Is there an operator for function composition in Julia? For example, if * was an operator fo...
Ortrude asked 30/3, 2016 at 15:58
2
Solved
I am looking for a function in Julia that has can take values similar to this R code:
rep(1, ncol(X))
I know I can use the package DataFrames for the length function for the ncol() function in ...
2
Solved
In my attempts to practice Julia, I've made a program which draws a bifurcation diagram. My code is as follows:
function bifur(x0,y0,a=1.3,b=0.4,n=1000,m=10000)
i,x,y=1,x0,y0
while i < n &...
1
Solved
I just recently came accross that there is different defition of quantile() in Julia and Matlab.
I was unable to align the two definitions and always get different result.
Does anybody know why is ...
Exclamatory asked 10/9, 2023 at 18:42
4
Solved
I have the following matrix A = [1.00 2.00; 3.00 4.00] and I need to convert it into a vector of Vectors as follows:
A1 = [1.00; 3.00]
A2 = [2.00; 4.00]
Any ideas?
Bathysphere asked 8/8, 2016 at 15:37
2
Idea
It's quite sad that so many great countries (e.g. India) and players (e.g. Mo Salah) may never play at the FIFA (football/soccer) World Cup (the same argument could apply as well to other spor...
Dilapidate asked 14/8, 2023 at 4:8
4
I'm new at programming in Julia and I need to create a GUI.
I've been looking for information and I can't find anything useful. I tried to search information in the Julia official web page, but it ...
Leman asked 11/2, 2016 at 0:8
2
Solved
when I type using Xpress it show me two errors. One is
LoadError: XPRESS cannot be loaded. Please run Pkg.build("Xpress")
and another is
Failed to precompile Xpress [9e70acf3-d6c9-5be6-b...
Cogon asked 25/10, 2021 at 22:18
3
Solved
I must be doing something stupid, but I can't seem to retrieve the current username using Julia. The closest function in Base appears to be gethostname(), but that returns the computer name, not th...
3
Is there a way in Julia that gets from one particular character to another? For example, I want to get the variable s="Hello, world" of 3 to 9 characters.
# output = 'llo, wo'
1
In the following example (code copied from the Flux project.toml) what is the purpose of the [extras] and [targets] sections?
[compat]
Adapt = "3.0"
ArrayInterface = "3.1, 4, 5, 6&qu...
5
Solved
expand.grid is a very handy function in R for calculating all possible combinations of several list. Here is how it works:
> x = c(1,2,3)
> y = c("a","b")
> z = c(10,12)
> d = expand.g...
Inessive asked 22/2, 2015 at 20:38
1
I'm trying to use Xpress solver in Julia-Jump. However, I have trouble to make Julia find the location of my Xpress installation. I'm using a Mac. I downloaded the Xpress, obtained license, put the...
Semester asked 20/7, 2023 at 19:20
3
Solved
What's an easy way to find the Euclidean distance between two n-dimensional vectors in Julia?
Zina asked 18/9, 2014 at 0:14
2
Solved
Suppose I have this code:
cond = true
a = cond ? 1 : 2
b = ifelse(cond, 1, 2)
What is the difference between the two operations?
Dosia asked 15/1, 2021 at 18:16
1
Say I have a Julia trait that relates to two types: one type is a sort of "base" type that may satisfy a sort of partial trait, and the other is an associated type that is uniquely determ...
4
Solved
In Python 3, I would
print_me = "Look at this significant figure formatted number: {:.2f}!".format(floating_point_number)
print(print_me)
or
print_me = f"Look at this significant figure format...
Hoffarth asked 4/5, 2016 at 14:46
3
Solved
I am currently learning about the built-in functions in Julia, specifically max and maximum, and I am seeking clarification on their differences.
julia> max(1, 2, 3, 4)
4
julia> maximum([1, 2...
2
Solved
Main Question: What is the fastest way to insert an item into a list that is already sorted using Julia?
Currently, I do this:
v = [1, 2, 3, 5] #example list
x = 4 #value to insert
index = search...
3
Solved
I'm trying to implement the following formula in Julia for calculating the Gini coefficient of a wage distribution:
where
Here's a simplified version of the code I'm using for this:
# Takes a...
Lemos asked 9/7, 2015 at 15:24
© 2022 - 2024 — McMap. All rights reserved.