Message from @Deleted User
Discord ID: 410645434772750346
if any other <@&387091385075105804> know how to matlab, I would greatly appreciate the help!
@Sam Southern - TN the second line, `b = length(v);` is changing the value of b
how do I set the length of the vector to b?
@Sam Southern - TN so first I would make a vector of 1..b, I'll call it powers, s
so
`powers = 1:b`
then
`v = a.^b`
now it's giving me the last one instead of the first one as the output
so [8]
instead of [2]
but not [2 4 8]
hmm I see, I'm at work now will have to check this out in a little while (unless someone else steps in π )
thanks for trying though, I do appreciate it
@Sam Southern - TN this works
The trick I had to remember was that a function that accepts scaler, if you plug in a vector, will return you a vector with the function applied to each entry
that, and making the vector 1...b is `1:b`
@ThisIsChris thank you, that works!
just got back from work, happy to see this finally work hahah
@Sam Southern - TN You're weclome! π
Whoever recommended Professor Leonard. Probably the best videos I've found for this. Much appreciated
@Deleted User that was @JC17-OR
@Deleted User My pleasure
I was wondering if someone could help me with a problem for my financial mathematics class?
<@&387091385075105804>
@Tycho Brahe @Zyzz you guys too may have some insight for @Deleted User ?
I'll go ahead and post a screenshot of the problem so people could see if they would be able to help.
@Deleted User What's the question? If you drop it here then when someone who can help comes on they can work on it
yeah perfect
Here are my notes. The example is supposed to align with how to do the problem, I just canβt seem to get the right answer.
Let me know if my notes can't be read.
I'm going to get some rest for tonight, but if anyone would still want to look at it and give me some guidance, I would greatly appreciate it. π
First, find future value:
FV = Principle\*(1 + rate\*time)
FV = 875*(1 + .1025 * 2)
FV = 1054.375
Then in one year there will be one year on the note left, and the bank is going to discount that at a 17.5% rate, so the discounted value the bank pays satisfies:
FV = DV * (1 + .175 * 1)
Plugging in the value for FV from before:
1054.375 = DV * (1.175)
Dividing both sides by 1.175 we get:
DV = 897.3404255319 = 897.34
So the holder of the note went from 875 to 897.34 in one year, so he has his own future value calculation he can plug values into:
897.34 = 875\*(1 + rate_for_holder \* 1)
dividing both sides by 875 you get:
1.0255314286 = 1 + rate_for_holder
so rate_for_holder = 0.0255314286... ~~ 0.026
so the rate for the holder is 2.6%
Thank you! @ThisIsChris I think I understand it much better now.
My pleasure! @Deleted User