Message Boards Message Boards

0
|
10141 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

Some math syntax help needed

Posted 9 years ago

This work Sqrt[g Sqrt[s + x^2]] /. {s -> 100.0, g -> 1000}
This also work Plot[Sqrt[1000 Sqrt[100 + x^2]],{x,0,1000} ]
Any way to make this work? Plot[Sqrt[g Sqrt[s + x^2]],{x,0,1000} ] /. {s -> 100.0, g -> 1000}

POSTED BY: Fred Alstair
4 Replies
Posted 9 years ago

WolframAlpha seems to correctly accept this

Plot[ReplaceAll[Sqrt[g Sqrt[s + x^2]],{s -> 100.0, g -> 1000}],{x,0,1000} ]

and this

POSTED BY: Bill Simpson
Posted 9 years ago

Sorry, Fred. I didn't read carefully enough. I was using Mathematica.

Best, David

POSTED BY: David Keith
Posted 9 years ago

"Wolfram|Alpha doesn't understand your query" when I try what you posted

POSTED BY: Fred Alstair
Posted 9 years ago

The rule needs to be applied before Plot evaluates:

Plot[Sqrt[g Sqrt[s + x^2]] /. {s -> 100.0, g -> 1000}, {x, 0, 1000}]
POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract