Message Boards Message Boards

GROUPS:

Defining range of variables for the whole notebook

Posted 1 month ago
284 Views
|
1 Reply
|
0 Total Likes
|

Hi all, At the start of a notebook, is there a way to define that a parameter belongs to a specific range such as [0,1]? I need Mathematica to know about the sign of the values under radicals and simplify them without being forced to repeat the Assuming function for the whole notebook over and over.

Posted 1 month ago

You could use $Assumptions

$Assumptions = {a > 0, b > 0};

Sqrt[a^2*b^2] // Simplify
(* a b *)

Power[a^3*b^3, 1/3] // Simplify
(* a b *)
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