Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I want to solve for x:
1 = a b e^(b(x-c))
That's where I'm stuck. I want to solve for x, and all the other letters are constants. I've forgotten how to solve that equation with the embedded "b(x-c)" for x.
Use logarithm
e^(b(x-c)) = 1/(ab)
ln(e^(b(x-c))) = ln(1/(ab))
b*(x-c) = -ln(a*b)
x-c = -ln(a*b)/b
x = c - ln(a*b)/b
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Lets say I have a vector c(1,2,3,4,5,6,7,8,9) how can I get a print of just 1,3,and 5 ?
For a sample of n random elements from vector X you can use sample(x = X, size = 3, replace = FALSE). To get the ith element of X you simply use X[i].
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Q <- c(1,2,3,4)
I want to make it so that every value in the vector gets multiplied by it's vector number. Such that 1*1, 2*2, 3*3, 4*4
Try:
Q * seq_along(Q)
#[1] 1 4 9 16
One way is:
>Q*1:length(Q)
#[1] 1 4 9 16
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have googled for the meaning of ◁ without avail.
Can anyone explain to me what x ◁ y means? For example:
z ⊢ x ◁ y
could it mean that we can derive an agreement between x and y from z?
Thanks.
I had a look at the Wikipedia List of Mathematical Symbols and it seems that this symbol defines a normal subgroup.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I know it should be trivial, but tonight I'm not finding a solution.
Suppose I have a series of float in a given range such [0.25, 1.0]. For example:
{0.25, 0.625, 1.0}
What's the correct way to transform them in order to map the [0.25,1.0] interval to [0.0,1.0]?
The example sequence should become:
{0.0, 0.5, 1.0}
Second question, how to generalize that? How is the correct way to map a given interval [a,b] to [0,1]?
fun lin-map(list) :=
mx = max(list), mn = min(list)
return [ (x - mn)/(mx-mn) | x <- list ]
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Is there a simplification for x^(log base (1/x) of N)?
Yes, it's 1 / N (the reciprocal of N), provided of course that both N and x are positive and x != 1.
x^(log[1/x](n)) = e^(log[1/x](n)*ln(x)) = e^((ln(n)/ln(1/x))*ln(x)) = e^(ln(n)*ln(x)/(-ln(x)) = e^(-ln(n)) = 1/n