Community Profile

photo

Binbin Qi


China University of Petroleum

3.677 total contributions since 2009

Professional Interests: Machine Learning/ Math/ Geophysics

Contact

Binbin Qi's Badges

  • Cody 5th Anniversary Finisher
  • Triathlon Participant
  • Scavenger Finisher
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer
  • Famous
  • Likeable
  • Combinatorics I Master
  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Project Euler I
  • Draw Letters

View all

Contributions in
View by

Solved


Calculate days until Christmas
Provided with inputs year, month, day e.g. 2019,11,12, calculate the number of days until the next Christmas day, i.e. the next ...

etwa 7 Stunden ago

Solved


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.

etwa 7 Stunden ago

Solved


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

etwa 7 Stunden ago

Solved


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

etwa 7 Stunden ago

Solved


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

etwa 17 Stunden ago

Solved


wythoff sequence
find the lower wythoff sequence upto n; https://oeis.org/A000201

etwa 17 Stunden ago

Solved


Adjoint matrix
given a matrix a, find the adjoint matrix of a.

etwa 17 Stunden ago

Solved


find nth even fibonacci number
1st even fibonacci number=2 ; 2nd even fibonacci number=8 ..

etwa 17 Stunden ago

Solved


Find edges from a vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

etwa 18 Stunden ago

Solved


Find a common edge
First input is T, a triplet list of indices. Second input is e = [e1 e2], a row vector, couple of indices (positive distinct int...

etwa 19 Stunden ago

Solved


Find a common vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

etwa 19 Stunden ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

13 Tage ago

Solved


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

13 Tage ago

Solved


Squares in Squares - Concentric Squares
Given a number, n, create an n x n sized matrix with concentric squares of 1s from the outside in. There should be a gap between...

13 Tage ago

Solved


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

29 Tage ago

Solved


Calculate the area of a circle
Given a circle of diameter x calculate its area

29 Tage ago

Solved


find subscripts from linear index
a matrix and the linear index of an element is given as input. find the subscripts of that element. if linear index=3 , outp...

29 Tage ago

Solved


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

29 Tage ago

Solved


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

29 Tage ago

Solved


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

29 Tage ago

Solved


factorial
calculate x!

29 Tage ago

Solved


Given a vector x, return vector y with all negative elements from the vector x.
Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

29 Tage ago

Solved


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;

29 Tage ago

Solved


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

29 Tage ago

Solved


Square
square root of x

29 Tage ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

29 Tage ago

Solved


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

29 Tage ago

Solved


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

etwa 2 Monate ago

Solved


square a number twice with square root of 4/5
square a number twice with square root of 4/5

etwa 2 Monate ago

Load more