A résolu


Orthogonal lines
Check whether two given lines are orthogonal or not. Two lines are orthogonal if they create a right angle at their intersect...

plus de 5 ans il y a

A résolu


Triangle???
Calculate the circumference of an equilateral triangle with x

plus de 5 ans il y a

A résolu


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

plus de 5 ans il y a

A résolu


Bit to Gigabyte
1 bit = 1.25 × 10^-10 gigabytes | x is bit | y is gigabyte

plus de 5 ans il y a

A résolu


Create a vector of n alternating ones and zeros (★★)
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

plus de 5 ans il y a

A résolu


generate the matrix
given a value n (say 4) - generate the matrix like below y= [0 1 2 3 4; -1 0 1 2 ...

plus de 5 ans il y a

A résolu


Check if a number belongs in the fibonacci squence
Test if integer i is a number in the fibonacci sequence. Return true if it is.

plus de 5 ans il y a

A résolu


factorial
calculate x!

plus de 5 ans il y a

A résolu


Sum sum!!!
Sum the numbers from 1 to n

plus de 5 ans il y a

A résolu


GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA

plus de 5 ans il y a

A résolu


Convert Angstrom to Meters
Write a code that converts the angstrom unit to meters.(A is angstrom and m is meters.)

plus de 5 ans il y a

A résolu


Number of o rderd pairs of integers (I,J) that can be formed.
Write a MATLAB function that calculates the number of ordered pairs of integers (I, J) that can be formed satisfying the condit...

plus de 5 ans il y a

A résolu


Vector raised to a power, element-wise (★)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

plus de 5 ans il y a

A résolu


Create a vector of the first n natural numbers (★)
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

plus de 5 ans il y a

A résolu


Sky full of stars - 01
Draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

plus de 5 ans il y a

A résolu


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

plus de 5 ans il y a

A résolu


Repeat elements of a vector
Repeat each elements of a given vector according to their values. * x=[1,2,1,3] * y=[1,2,2,1,3,3,3]

plus de 5 ans il y a

A résolu


Check prime numbers
Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

plus de 5 ans il y a

A résolu


Sort even numbers from 1 to 100
Sort even numbers from 1 to 100 for ex: x=1:100

plus de 5 ans il y a

A résolu


How many apple
You have x apples I take from you y apples now how many apples you have ?

plus de 5 ans il y a

A résolu


Get the area of ​​the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

plus de 5 ans il y a

A résolu


Element-wise vector product (★)
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

plus de 5 ans il y a

A résolu


Create a vector with n repeated values of a number x (★★)
If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

plus de 5 ans il y a

A résolu


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

plus de 5 ans il y a

A résolu


find

plus de 5 ans il y a

A résolu


Find the area of ​​the square
There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

plus de 5 ans il y a

A résolu


find

plus de 5 ans il y a

A résolu


Tribonacci Sequence
Generate the tribonacci sequence upto n

plus de 5 ans il y a

A résolu


Wythoff Sequence
Find the lower Wythoff sequence up to n. For more information, <https://oeis.org/A000201>

plus de 5 ans il y a

A résolu


python

plus de 5 ans il y a

Charger plus