Solving Vector Multiplication (general problem) [closed] - math

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
I am trying to solve a Mathematical equation in one of my geometric modelling problem.
Let's say if I have 2 vectors, A and B, and I have the following equation:
A x B = c (c is a scalar value).
If I know the coordinate of my vector B (7/2, 15/2); and I know the value of c, which is -4.
How can I calculate my vector A, to satisfy that equation (A X B = c) ?

The problem is underdetermined; there isn't a unique such A. I assume that by "multiplication" you mean the cross product.
A = (x,y)
B = (7/2, 15/2)
A×B = x(15/2) - y(7/2)
-4 = (15x-7y)/2
15x - 7y = -8
This gives a line along which points A=(x,y) can lie. Specifically, for any real number t,
x = -1 + 7t
y = -1 + 15t
gives a solution.

Related

Pls convert this R code of bit error probability into matlab [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
solution of the bit error probability problem
prob=function(E,m) #--- prob is the estimated error probabity for given values of signal to
#---noise ratio E and sample size m
{
stopifnot(E>=0 & m>0) #--- this says that the function won't accept negative values of E and
#---m shoulde be at least 1
n=rnorm(m) #--- this says that n is a random sample of size m from N(0,1)
#---distribution
m=mean(n< -sqrt(E)) #--- this says that m is the proportion of values in n which are less
#---than the negative root of E
return(m) #--- this gives us the value of m, which is the estimated error
#---probability
}
E=seq(0,2,by=0.001)
sam=1000
y=sapply(E,prob,m=sam)
p=10*log10(E)
plot(p, log(y),
main="Graph For The Error Probabilities",
xlab=expression(10*log[10](E)),
ylab="log(Error Probability)",
type="l")
You can try the MATLAB code like below
clc;
clear;
close all;
function y = prob(E,m)
assert(E>=0 & m>0);
n = randn(1,m);
y = mean(n+sqrt(E)<0);
end
E = 0:0.001:2;
sam = 1000;
y = arrayfun(#(x) prob(x,sam),E);
p = 10*log10(E);
plot(p,log(y));
title("Graph For The Error Probabilities");
xlabel('10\log_{10}(E)');
ylabel("log(Error Probability)");
OUTPUT (MATLAB)
OUTPUT (R)

Find a variable in the equation [closed]

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 3 years ago.
Improve this question
Given the equation (depth = log(c * p + 1) / log(c * 1000 + 1) * p)
How can I find p?
I wanted to get an equation with p = sqrt(exp(... or something like this
The isn't an analytical solution to problems like this because they contain the variable both inside and outside a transcendental function like log().
With some quick algebra, you can simplify the expression to
p*log(1 + c*p) = b
where b=depth*log(1+1000*c) is a constant.
I propose using a single point iteration, to get a numeric result.
Start with some guess of p=1 or something and then do a loop until you converge to a value of (c# shown below).
b = depth*log(1+1000*c);
p = 1;
do
{
p_old = p;
p = b/log(1+c*p);
}
while( abs(p-p_old)> 1e-6);
and hope it converges soon.

Normal Distribution in R. Finding P [closed]

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
I'm having trouble solving a normal distribution problem in R. I'm unfamiliar with the syntax and would like some help.
If X~N(2,9), compute
a. P(X>=2)
b. P(1<=X<7)
c. P(-2.5<=X<-1)
d. P(-3<=X-2<3)
You are looking for the pnorm function. This is the normal CDF. So you want to do something like:
# A
1 - pnorm(2, mean = 2, sd = 9) # = 0.5
# B
pnorm(7, mean = 2, sd = 9) - pnorm(1, mean = 2, sd = 9) # = 0.255
I think you can figure out the last two yourself.

how to solve IVP using separable variable [closed]

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
the question is:
x dy/dx = 2y ; y(0)=0
because when i solve this problem the integration constant 'c' gets zero... and i have to find its value in order to calculate a solution to given IVP
Unless I'm mistaken, this question gives c = 0 for y(0) = 0
x*dy/dx = 2y
x*dy = 2y*dx
dy / 2y = dx / x
ln(2y) = ln(x) + c
e^(ln(2y)) = e^(ln(x) + c) = e^ln(x)*e(c)
2y = x + c
solving for y(0) = 0 gives c = 0, as you stated.
Why do you think c must not be 0?

I want to calculate this Integral to solve one important differential equation in general relativity [closed]

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 12 years ago.
Improve this question
∫▒fdf/√(f(f^3 a+6bf+3c))
a, b, c are constant
The program is:
Integrate[x/Sqrt[x (x^3 a + 6 b x + 3 c )], x]
As per Mathematica output:
(2*(EllipticF[ArcSin[Sqrt[(x*(-R[1] + R[3]))/((x - R[1])*R[3])]],
((R[1] - R[2])*R[3])/(R[2]*(R[1] - R[3]))] -
EllipticPi[R[3]/(-R[1] + R[3]),
ArcSin[Sqrt[(x*(-R[1] + R[3]))/((x - R[1])*R[3])]],
((R[1] - R[2])*R[3])/(R[2]*(R[1] - R[3]))])*(x - R[1])^2*
Sqrt[(R[1]*(x - R[2]))/((x - R[1])*R[2])]*R[3]*
Sqrt[x*R[1]*(x - R[3])*(-R[1] + R[3]^2)])/
(Sqrt[x*(3*c + 6*b*x + a*x^3)]* (R[1] - R[3]))
Where:
Root[n]
Is the n root of the polynomial
p[u]=3 c + 6 b u + a u^3
Additionally, you may try this in Wolfram Alpha to get the indefinite integral, or definite ones. But I really think that if you are solving one important differential equation in general relativity and don't tried Mathematica and/or Wolfram Alpha, you may be a) Trolling or b) In great trouble

Resources