4
$\begingroup$
In[1]: Solve[{(1 + k)^n == 0.6, (1 + k)^(n + 1) == 0.3}, {n, k}]

Solve::ifun: Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution information. >>

Out[1]: {{n -> 0.736966, k -> -0.5}}

In[2]: Solve[{2*(1 + k)^n == 1.2, (1 + k)^(n + 1) == 0.3}, {n, k}]

Solve::inex: Solve was unable to solve the system with inexact coefficients or the system obtained by direct rationalization of inexact numbers present in the system. Since many of the methods used by Solve require exact input, providing Solve with an exact version of the system may help. >>

Out[2]: Solve[{2 (1 + k)^n == 1.2, (1 + k)^(1 + n) == 0.3}, {n, k}]

Where is the problem with Mathematica, not able to divide by 2 in first equation?

$\endgroup$
2
  • $\begingroup$ I don't know why the second system wasn't amenable to Solve (perhaps representation error in the decimal 1.2, which results in a rationalized form not equal to 12/10). But that second system is amenable to Reduce. $\endgroup$
    – murray
    Mar 19, 2014 at 15:49
  • $\begingroup$ (e^-[Theta]x [Theta]^2)/(1 + [Theta]) any one help me to solve this equation .i wana fifind value of x from this function.. $\endgroup$
    – user32792
    Sep 3, 2015 at 10:51

2 Answers 2

3
$\begingroup$

You can tell Solve to use Reduce, Reference to Solve

Solve[{2*(1 + k)^n == 1.2, (1 + k)^(n + 1) == 0.3}, {n, k}, 
Method -> Reduce]
(*{{n -> ConditionalExpression[-1.4427 (-0.510826 + (0. + 6.28319 I) C[
     1]), C[1] \[Element] Integers], 
      k -> ConditionalExpression[-0.5, C[1] \[Element] Integers]}}*)
$\endgroup$
1
$\begingroup$
Solve[Rationalize@{2*(1 + k)^n == 1.2, (1 + k)^(n + 1) == 0.3}, {n,  k}, Reals]
(*
 {{n -> (-Log[3] + Log[5])/Log[2], k -> -(1/2)}}
*)

or:

Solve[{2*(1 + k)^n == 1.2, (1 + k)^(n + 1) == 0.3}, {n, k}, Reals]
(*
 {{n -> 0.736966, k -> -0.5}}
*)
$\endgroup$
2
  • $\begingroup$ The answers so far don't explain why merely doubling each side of the first of the two equations converts a system that Solve can handle to a system that it cannot. $\endgroup$
    – murray
    Mar 19, 2014 at 19:17
  • $\begingroup$ @murray I believe your comment on the question is right. Solve[] found both an exact (2) and an inexact (1.2) number on the same equation, and without specifying the domain (Reals) it doesn't know how to proceed $\endgroup$ Mar 19, 2014 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.