How to correctly write this function?(matlab) -


input:

syms x b c; piem=((c+a*x+b*x^(1/2))/(x-1)-1); solve(piem,x) pretty(solve(piem,x))   f2=arcsin(sqrt(x(x^2-1))); df2=diff(arcsin(sqrt(x(x^2-1)))); x=1:0.1:13; y=eval(f2); dy=eval(df2); plot(x,y,x,dy) 

this function supposed like

function

i don't understand why part isn't working

f2=arcsin(sqrt(x(x^2-1))); df2=diff(arcsin(sqrt(x(x^2-1)))); x=1:0.1:13; y=eval(f2); dy=eval(df2); plot(x,y,x,dy) 

as understand error there wrong part

arcsin(sqrt(x(x^2-1))) 

how can write 1 in different way?

matlab not perform implicit multiplication when encounters parenthesis. instead need explicitly perform multplication using *.

also, want asin not arcsin.

asin(sqrt(x * (x^2-1))) 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -