G.Grothendieck indicated in the comments that you need to first write down the expression that will be used below:
soln <- Solve(n/2*(2-exp(-lambda12*Tf)-exp(-lambda18*Tf))==d , n) X <- yacas(soln)$text
Then, to extract the factor, you can take advantage of the fact that many objects of the R-language are either, or can be forced into lists.
X <- expression(list(n == 382/1.625)) res <- eval(X[[1]][[2]][[3]]) res [1] 235.0769
The following shows why this index sequence retrieves the right side of the expression:
as.list(X) # [[1]] # list(n == 382/1.625) as.list(X[[1]]) # [[1]] # list # # [[2]] # n == 382/1.625 as.list(X[[1]][[2]]) # [[1]] # `==` # # [[2]] # n # # [[3]] # 382/1.625
source share