# Search results

1. ### Why does this algorithm work for calculating ln(x)?

Homework Statement I found this algorithm online for computing ln(x). I use the babylonians method for computing square root if it is relevant. fun naturalLog(desired: Double): Double { var naturalLog = desired // desired = x for(number in 0..9) { naturalLog =...
2. ### How do you compute an exponent with irrational values?

This has been really informative, thank you! I think once I've implemented a properly working algorithm for this, I can move on to implementations of trigonometric functions. Do you have any suggestions on other methods to look at for approximations? For now, I'm not too concerned about...
3. ### How do you compute an exponent with irrational values?

I uploaded the file here if you're interested: http://www.filedropper.com/spie19991 Not sure why your browser is flagging that site... Loaded for me fine. Proceed at own risk though, lol. Also, back to your original suggestion. I have a question about computing ##e^x## where ##0<x<1##. How do...
4. ### How do you compute an exponent with irrational values?

This was very informative, thank you. I was well aware of how a pocket hand-held calculator performed operations but did not bother to actually consider implementing their logic(since I'm implementing this calculator as an android app) I will read into both the paper you linked and...
5. ### How do you compute an exponent with irrational values?

I suppose I could use some tables. I figured if I had a table of ##e^x## I could interpolate up to a certain point. Not sure to what degree though.
6. ### How do you compute an exponent with irrational values?

Never would have thought that programming would get me more excited to do math! Too cool. I am not too worried about optimization of algorithms for now rather than just getting a proper calculator working. Edit: Ok abck to my original problem. So using the summation I mentioned above I get...
7. ### How do you compute an exponent with irrational values?

Homework Statement Let's say I want to compute ##2^{2.4134}##. We know that the base is a rational number and the power is an irrational number. Please keep in mind that I have not taken too many math classes yet and I am self-studying right now by making a calculator and respective algorithms...
8. ### Onto linear transformation

Let's assume that it was from R4 -> R3. What now? It should never be one-to-one in that case, but can it still be onto?
9. ### Onto linear transformation

Homework Statement Say I have a matrix: [3 -2 1] [1 -4 1] [1 1 0] Is this matrix onto? One to one? Homework Equations The Attempt at a Solution I know it's not one to one. In ker(T) there are non trivial solutions to the system. But since I've confirmed there is something in the ker(T)...
10. ### Converting standard to polar form

Oh... right. I didn't know how to add the degree symbol with latex. I feel stupid now. How about the degree for ##z=-8i##? Am I right to think that it is 270o?
11. ### Converting standard to polar form

Homework Statement you are given the standard form z = 3 - 3i Homework Equations The Attempt at a Solution so to convert this to polar form, i know that ##r = 3√2## but how do i find theta here? There are so many mixed answers it seems online that I can't tell... i know that ##(3,-3)## is in...

Yup! Makes sense now. Just find it interesting that I understand the nullspace and can compute it easily but I still abstract details like that.

The subspace of linear combinations that make your system equal to 0? edit: Now that I think about it, when A is a 3x5 matrix, you need a 5x1 matrix vector X. Since X is 5x1, that means the nullspace is in r5 since X represents all vectors inside the nullspace?

Why would it be in r5 though? Each vector in the nullspace will only have 3 components

Homework Statement If we have a 3x5 matrix: The row space is in r5, the col space is in r3, and the nullspace is in r3 correct? Because you would need 5 components to be a member of r5 so the col space cannot be a member of r5 correct? Here is the question: http://prntscr.com/evo91g...
16. ### Studying How can I improve my ability to work with proofs?

Aside from calculus 1, linear algebra i haven't taken any maths. Or atleast not anymore that I can recall.
17. ### Comp Sci Make an array with this series (java challenge)

That actually is the full problem description. Here's the link for more examples: http://codingbat.com/prob/p155405 I fixed the issue though. Like the quote above had stated, endpoint was greater than beginpoint so I had to fix that. The idea of 'subarray' was more or less just parts of the...
18. ### Comp Sci Make an array with this series (java challenge)

Turns out the line end=beginPoint+n-1 should be - n, not + n.
19. ### Comp Sci Make an array with this series (java challenge)

Homework Statement Given n>=0, create an array length n*n with the following pattern, shown here for n=3 : {0, 0, 1, 0, 2, 1, 3, 2, 1} (spaces added to show the 3 groups). Homework Equations The Attempt at a Solution public int[] squareUp(int n) { int length = n*n; int[]...
20. ### Linear Algebra - what is Re and Im for complex numbers?

Oh! That makes this easy then. Is this notation common then? They could have saved me the trouble of typing out a few more characters... :)
21. ### Engineering Masters in mechanical engineering after a bachelor in NE

Take what I say with a grain of salt because I myself am not an engineer, but my father had took far beyond what was needed for civil engineering discipline. After he had finished his civil engineering bachelors, for his masters he also did mining and product engineering ontop of his plate. I...
22. ### Engineering Masters in mechanical engineering after a bachelor in NE

Purchasing a degree? How do you purchase a bachelor degree?
23. ### Linear Algebra - what is Re and Im for complex numbers?

Homework Statement http://prntscr.com/eqhh2p http://prntscr.com/eqhhcg Homework Equations The Attempt at a Solution I don't even know what these are, it is not outlined in my textbook. I'm assuming I am is image? But how do you calculate image even? As far as I'm concerned I am has to do...
24. ### Studying How can I improve my ability to work with proofs?

Not knowing where to begin. How to make proper use of information that they already give me. Thanks, I'll look into it.
25. ### Studying How can I improve my ability to work with proofs?

I'm a CS student and I'm about to take discrete mathematics next two semesters. My proofs are very weak and I want to change this. (I'm told discrete math is a lot of proofs.) Are there any books/courses/resources to help me work my way up? I have a summer to prepare for.
26. ### How can you tell if somethign is a subspace with abstract info?

Homework Statement http://prntscr.com/ej0akz Homework Equations The Attempt at a Solution I know there are three problems in one here, but they are all of the same nature. I don't understand how this is enough information to find out if they are subspaces. It's all really abstract to me. I...
27. ### Question about linear independence

No, because they are multiples of one another So, in hte first set they are linear independent. But because set two has all vectors adding several multiples of each member it is linear dependent(hope this makes sense)? I didn't see that the second set had four members and not three. This makes...
28. ### Question about linear independence

So if you could make a combination that indicates that they are dependent then it would mean that it depends on values of the vectors? I'm having a hard time putting this all into perspective without examples. How do you know this? I thought they were just 3, individually independent vectors...
29. ### Question about linear independence

Homework Statement Homework Equations The Attempt at a Solution if there exists a set with 3 vectors, and all of them are linear independent, then by definition no linear combination of the 3 vectors can equal to 0. I believe that's an accurate definition right? So in this case, the...
30. ### Having troubles with searching in specific fashion with bash

it is for a class, and unfortunately my freedom for how I solve the homework is limited. I have actually done what you stated before where it reads the file line by line, however I have a question. Say I have a condition: if [ substring is found in line i, col 10-15 ] then variable +=...
31. ### Having troubles with searching in specific fashion with bash

Homework Statement Say I have a textfile that is separated by columns, and I want to search columns 10-15. If there are any matches, then I want to cut out specific parts of all the matches and print it to the user. How do I do this? Homework Equations The Attempt at a Solution What I...
32. ### Finding the distance(shortest) from a point to a plane

So projecting PoP on to N gives a vector that is parallel to n essentially correct? And this vector represents QP?
33. ### Finding the distance(shortest) from a point to a plane

Homework Statement assuming the point given is P(3,2,3) and the equation of the plane is 2x + y + 2z = 2, find the distance and the point Q which represents that point Homework Equations The Attempt at a Solution Okay so I think that OQ-OP = QP, which connects the two points and is the line...
34. ### Choose h and k so that the matrix has a unique solution

Hi guys, I'm coming back to this problem and I wanted to know why h can't be 4 in this scenario. Is it because the second row will be 0,0? Why does that make this not a unique solution?

39. ### Inconsistent vs consistent augmented matrices

So in the second matrix, since it is a diagonal with non-zero numbers and no variables being free, it is consistent with a unique solution as every variable can be pointed to a specific value(Hope that makes sense)? And in the first matrix, there is a free variable. If there is a free...
40. ### Inconsistent vs consistent augmented matrices

Homework Statement Consider the following matrix where * indicates an arbitrary number and a ■ indicates a non zero number. http://prntscr.com/e4xqkx [■ * * * * | *] [0 ■ * * 0 |* ] [0 0 ■ * * | *] [0 0 0 0 ■ | *] (Sorry for poorly formatted matrix. The link above contains a screenshot...
41. ### Choose h and k so that the matrix has a unique solution

Yeah this makes a lot more sense now. I didn't understand what made rows linear independent, I wish my textbook had gone over this. I was wondering why it had to be h that couldn't be 4, and not k but this clarifies that.
42. ### Choose h and k so that the matrix has a unique solution

Just a question - does k still have to correspond to what h is(it should right - because it would be inconsistent otherwise)? Its bothering me that I can't algebraically find specific, unique values. What if h was 3? -y = k - 4 - > would k have to be 3?
43. ### Choose h and k so that the matrix has a unique solution

##\begin{bmatrix} 1 & 2 & | & 2 \\ 2 & h & | & k \end{bmatrix}## ##\begin{bmatrix} 1 & 2 & | & 2 \\ 0 & h-4 & | & k-4 \end{bmatrix}## ##\begin{bmatrix} 1 & 2 & | & 2 \\ 0 & 1 & | & (k-4)/(h-4) \end{bmatrix}## ##\begin{bmatrix} 1 & 0 & | & 2 - ((2k-8)(h-4)) \\ 0 & 1 & | & (k-4)/(h-4)...
44. ### Choose h and k so that the matrix has a unique solution

hmm... how about x = (2h-2k)/h and y = k/h. Do i just choose random values?>
45. ### Choose h and k so that the matrix has a unique solution

I have not seen such a theorem before. But I'm having troubles drawing the connections here - I believe that the two rows must be independent of each other, but they also need to be consistent. How does rank play into this? If it is of rank 2, then they will have two rows/columns that are...
46. ### Choose h and k so that the matrix has a unique solution

for row reduced echelon form i got: x = (2h-2-k)/h y = (2+k)/h I believe rank indicates the linearly independent columns in a matrix, in this case rank 2? Do I just input values for h and k so that x = 1 and y = 1?
47. ### Choose h and k so that the matrix has a unique solution

the determinant is h-4 correct? how does this help me?
48. ### Choose h and k so that the matrix has a unique solution

http://prntscr.com/e4kqrc i'm assuming 2x + hy = k, sorry
49. ### Choose h and k so that the matrix has a unique solution

hmm.. I'm unsure of how to make an augmented matrix in latex. it's meant to be : row one: 1x + 2y = 2 row two: 2x + h = k
50. ### Choose h and k so that the matrix has a unique solution

Homework Statement $$A = \begin{bmatrix} 1 & 2\\ 2 & h\\ = k \end{bmatrix}$$ Mod note: Corrected augmented matrix: ##\begin{bmatrix} 1 & 2 & | & 2 \\ 2 & h & | & k \end{bmatrix}## Homework Equations The Attempt at a Solution Ok, so apparently it's a bad idea...