Enable contrast version

# Tutor profile: Ravi S.

Inactive
Ravi S.
Senior Project Engineering at IIT Kanpur
Tutor Satisfaction Guarantee

## Questions

### Subject:Python Programming

TutorMe
Question:

Given a string in a variable 'a'. Write a single line python expression that returns a logical 'True' or 'False' depending on if 'a' is a palindrome or not, respectively. You are not supposed to import any library/module/sub-modules and use related functions.

Inactive
Ravi S.

As simple as it can be: a==a[::-1]

### Subject:MATLAB

TutorMe
Question:

(1) Solve with a single line expression. For a given matrix/vector A, find all the negative numbers inside it and increment them with 1 while updating the matrix simultaneously. (2) Write four expressions/functions by which you can solve a system of linear equations Ax=b

Inactive
Ravi S.

== (1) == A(find(A<0)) = A(find(A<0))+1 == (2) == (a) A\b (b) mldivide(A,b) (c) linsolve(A,b) (d) pinv(A)*b It is to be noted that, the part (d) uses the concept of pseudo inverse (pinv). In general, when the matrices are non-square (which can be very well the case with system of linear equations), 'pinv' ensures the solution and 'inv' function which only calculates inverse for the square matrices can't be used.

### Subject:Computer Science (General)

TutorMe
Question:

What is the fastest memory unit available in a computer system for programming.

Inactive
Ravi S.

Its registers! Some may argue that the answer is a cache memory, but, the CPU utilized cache for its memory management but can not be externally programmed in general. While registers are frequently utilized for programming, as we know specially in close vicinity with microprocessors.

## Contact tutor

Send a message explaining your
needs and Ravi will reply soon.
Contact Ravi