Gelöst


Sum of squares
Given a number n, return the sum of squares of all integers from 1 to n.

mehr als 2 Jahre vor

Gelöst


Determine whether a number is a Zeisel number
Do you know what is interesting about the number 1729? That’s right: it’s the third Zeisel number, a number given by , where ...

mehr als 2 Jahre vor

Gelöst


rotation et mise à l'échelle avec des complexes
Ecrire une fonction Zr=scale_rot(A,phi,Z) qui permet une mise à l'échelle d'un facteur A et une rotation d'un angle phi (en rad)...

mehr als 2 Jahre vor

Gelöst


Find stiffness of all beams for single floor in building
Create a function that finds this stiffness k of all the beams (also known as 'stanchions') for one floor of a three storey buil...

mehr als 2 Jahre vor

Gelöst


Find mass of single floor in building
A model building has three floors are highlighted in different colours here: Assu...

mehr als 2 Jahre vor

Gelöst


Count integers in randomized vector that are multiples of a given number.
The mod() function We might all remember the days when we were taught to divide and then set the remainder aside if the numbers...

mehr als 2 Jahre vor

Gelöst


The Hacker Parole Problem
The hacker parole problem 100 hackers have been imprisoned, but have been given a way to get parole. Each of the 100 prisone...

mehr als 2 Jahre vor

Gelöst


Lancer de dés
Ecrire une fonction qui imite le lancer d'un dé, i-e qui renvoie de façon aléatoire un entier entre 1 et 6. Attention cette fon...

mehr als 2 Jahre vor

Gelöst


Solve an ODE: precocious pair’s porcine pursuit
In our previous encounters with Matilda and Labrun, the scintillating siblings collected candy wrappers, amused others with card...

mehr als 2 Jahre vor

Gelöst


Solve an ODE: first-order linear equation
In the fall semester of [redacted], my professor for a course on ordinary differential equations said, “There are two groups of ...

mehr als 2 Jahre vor

Gelöst


Solve an ODE: diffusion problem 2

mehr als 2 Jahre vor

Gelöst


Solve an ODE: diffusion problem 1

mehr als 2 Jahre vor

Gelöst


Evaluate the Struve function
The <https://en.wikipedia.org/wiki/Struve_function Struve function> *H*_a(x) is a solution to an inhomogeneous form of Bessel's ...

mehr als 2 Jahre vor

Gelöst


Sum the prime numbers from 1-100
Write a function to sum up the prime numbers from 1-100.

mehr als 2 Jahre vor

Gelöst


Repopulate the City
For any population p of positive integers between pmin and pmax, we can calculate histogram count n for a list of evenly dividin...

mehr als 2 Jahre vor

Beantwortet
nested loop shows only the result of last iteration
Index W_T T=10 W_T=zeros(T,T-1); for n=0:T-1 W_t=(1+r*(1-tau)).^(-(T-n)).*C_0*epsilon.^T.*K^(1/gamma); for m=n+1...

mehr als 2 Jahre vor | 1

Gelöst


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

mehr als 2 Jahre vor

Gelöst


Solve an ODE: nonlinear third-order equation
Write a function to solve the ordinary differential equation on the domain with , , and either or . The input variable ord ...

mehr als 2 Jahre vor

Gelöst


8 : Find the Solving vector
The Puzzle 8 is a variant of 15 ( Fifteen ). Fifteen is a slider puzzle, also a matlab function, with the goal being to create t...

mehr als 2 Jahre vor

Gelöst


Determine whether a number is a Higgs prime
If the sequence lists the Higgs primes, then is the smallest prime greater than such that divides the product . The first fo...

mehr als 2 Jahre vor

Gelöst


Cryptomath: Addition
W A I T + A L L --------- G I F T S equals: 9 6 0 8 + 6 7 7 --------- 1 0 2 8 5 Given str...

mehr als 2 Jahre vor

Gelöst


Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

mehr als 2 Jahre vor

Gelöst


Differential equations I
Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

mehr als 2 Jahre vor

Beantwortet
Calculating the differences of elements in an array
x=rand(1,10) d=x-x(1)

mehr als 2 Jahre vor | 0

Gelöst


Troubles With Spaces - Convert Some Messy Data Into A Clean Array
I have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when ...

mehr als 2 Jahre vor

Beantwortet
I want to add third loop for n variable in mentioned code having n= 3.7 4.9 5.7 8.9 but code is giving lines for n=3.7 only why?
The values of n are not affecting Sk; therefore, the graphs are plotting over the top of each other and only 5 graphs are displa...

mehr als 2 Jahre vor | 0

Gelöst


Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.

mehr als 2 Jahre vor

Gelöst


Array Width (no usage of size)
Find the array width. Size may not be used.

mehr als 2 Jahre vor

Gelöst


Concatenate a successive power matrix in a column matrix
Generate F = [M1 M^2 ... M^p] with M a matrix, without using for.

mehr als 2 Jahre vor

Gelöst


Intersection(s) of Circles
Do two given circles intersect in Zero, One, or Two points and provide the intersection(s). The Stafford method may provide some...

mehr als 2 Jahre vor

Mehr laden