Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Investigating a package dependency issue

Hi, what is the recommended way to investigate a package dependency issue? I’m asking a general question in the “teach to fish” spirit, but here are the specifics: I can’t get SystemBenchmark.jl to...

View Article


Impute by index

Hello! So I am new to the language, I have been learning now about all the joins, the select, combine, transform, etc. But there is an issue that I don’t know how to solve without creating a for loop:...

View Article


Adding a package stops at "Resolving package versions" since yesterday

This is a recent problem, I’m not sure what’s causing it, and I’m wondering if anyone has a solution. (@v1.4) pkg> add PkgTemplates Updating registry at `C:\Users\peter\.julia\registries\General`...

View Article

Image may be NSFW.
Clik here to view.

A little problem with combine from DataFrames.jl

Hi! I am learning the usage of DataFrames.jl from Julia Academy and I found a problem. When I used combine for creating a new column, the tutorial and any other material (like this) that I have...

View Article

Image may be NSFW.
Clik here to view.

An unexpected result using DataFrames.jl

Hi! Following JuliaAcademy, I had found something that results confusing. using DataFrames, Random function sim_e() draw = Float64[] while true push!(draw, rand()) sum(draw) > 1.0 && return...

View Article


GLPK callbacks in JuMP

Hello! I’ve been trying to implement a callback function using GLPK that rejects feasible solutions (with lazy constraints) when certain conditions are met. However, I understand that JuMP only allows...

View Article

Please help, I study computer science at the university

Please my friends Can you answer these questions related to the Julia programming language ? Classify your language (imperative, functional, logic, OO, your choice). Is the scoping static or dynamic?...

View Article

How to plot square root of solution to an ODE

Hi, I have an ODEProblem, let us say like the one in this example: https://docs.sciml.ai/stable/tutorials/ode_example/ function parameterized_lorenz!(du,u,p,t) du[1] = p[1]*(u[2]-u[1]) du[2] =...

View Article


While loop

Hello, I’m trying to rewrite some old java code to julia and I’ve problem with whlie loop. In java I was while(++a < b && c>d) and here I see that ++ is “not a unuary operator”. Is it...

View Article


Debugging macros at module loading

Hello, I am using several macros in a module I am creating. How can I step through the macro for debugging? I am looking for something like (which obviously does not work, not a function call): @enter...

View Article

Need to sample from two-parameter univariate exponential distribution

Hello, I need to sample from a two-parameter family of continuous univariate distributions supported on the interval [0,C] where C is around 10^{12}. The parameters are \alpha and \beta and the PDF is...

View Article

Query @mutate changes other column type

Hi all, this is my smallest code that I fight with: contents = """ "5674012","aa66aa66" "5674012","9b4e08e5" "5674012","b036aa66,b036aa67,b036aa68" """; batches = CSV.File(IOBuffer(contents); header =...

View Article

Error when installing PowerModels

I have just installed Juno and I have a problem with installing the package PowerModels. I’m using windows 10 home 64-bit. The problem is displayed in the next lines (@v1.4) pkg> test PowerModels...

View Article


How to allow time array to be passed as an input for the parameter p...

hey, i am learning the example it works but i do not know if it is correct. using DifferentialEquations, Plots l = 1.0 # length [m] m = 1.0 # mass[m] g = 9.81 # gravitational acceleration [m/s²]...

View Article

Can someone help me on how to resolve package conflicts with dev'ed packages?

I’d like to understand better the registry system, and how to troubleshoot this error ERROR: Unsatisfiable requirements detected for package <<>> I wanted to use the newest version of...

View Article


Image may be NSFW.
Clik here to view.

Dictionary with loop and squared numbers

i’m learning Julia through juliaacademy.com and i’m not getting past exercise 4.2. 4.1 I got it easy, but I ended up stalling right away. I’ve tried everything but it didn’t work at all. if anyone can...

View Article

Problem with package TableView / Julia usage

First of all I would like to apologize if my question is too elementary. Although I have some experience with MS Excel VBA I am still a beginner at general use programming languages. Also, I would...

View Article


Confusion with arrays and functions

I was using a function inside a loop to modify a 2-Dimensional array variable (say DATA) in my code when I realised that the variable changes even when I have not given DATA as an argument or tried to...

View Article

Array/Vector multiplication for single element arrays

Hi, I’m a long term Matlab user just starting to wade into the world of Julia, so forgive me if my question is naive. I’m am currently writing some code to perform a number of matrix manipulation...

View Article

What's the correct way to including functions that only got introduce from a...

I want to support all LTS Julia versions which is currently 1.0.5. However, some functions like nonmissingtype is only introduced in 1.3 What’s the correct way to support these type of functions?...

View Article
Browsing all 2795 articles
Browse latest View live