# Tutor profile: Nefeli D.

## Questions

### Subject: MATLAB

Please create in MATLAB environment, a script named 'fib' that employs a for loop to compute the first 100 numbers of the Fibonacci sequence. In this sample, the first two columns are 1 with each subsequent number to be the sum of the previous two as Fn = Fn-1 + Fn-2.

%Creating a fib.script n=100; %variable accounting for the total run time of the for loop (i.e. the boundaries) f(1) = 1; %setting the first column of unity f(2)=2; %setting the second column of unity %begin the for loop for x=3:n %where x-variable is the for loop counter and 3 accounts for each subsequent number which is the sum of the previous two f(x)=f(x-1) + f(x-2) %computes the subsequent numbers end f(1:10)

### Subject: Basic Math

Please simplify the algebraic expression: 3(4x+5y)-2(3x-7y). Then evaluate the simplified expression for x=3 and y=-2.

To simplify the expression, one can use the real numbers basic properties as follow: 3 ( 4x + 5y ) - 2 ( 3x - 7y ) = 3 ( 4x + 5y ) + (-2) ( 3x + [-7]y ) = % Subtraction Definition 12x + 15y + (-6)x + 14y = % Distributive Property 12x + (-6x) + 15y +14y = % Property of Commutative Addition (gathering all same factor variables together) ( 12 + [-6] )x + ( 15 +14 )y = % Distributive Property 6x + 29y = % Simplified Expression Now, replaces with the values for x=3 and y=-2 one obtains 6(3) + 29(-2) = -40

### Subject: LaTeX

Please provide in LaTeX environment a question example with two subparts. The question heading is ''Answer the questions in the space provided''. The parts headings are "1. Solve for x and y, if x=y+5 and y=2x+4." and "2. Did you find the example useful?"

\documentclass{exam} %latex command for questions in parts and subparts \usepackage[utf8]{inputenc} \begin{document} %latex command where documents begins % latex environment where 'exam' class begins \begin{center} Answer the questions in the spaces provided. \vspace{5mm} \begin{questions} %where 'class' environment begins \question 1. Solve for x and y, if x=y+5 and y=2x+4. % shows question 1 \question 2. Did you find the example useful? %shows question 2 \end{questions} %where 'class' environment ends

## Contact tutor

needs and Nefeli will reply soon.