How to set assumptions in matlab

Click For Summary
SUMMARY

This discussion focuses on setting specific assumptions in MATLAB, particularly regarding the integration of the expression 3*a*x/b with the condition that b is less than a. The user demonstrates knowledge of basic assumptions, such as defining a variable as positive using sym('a','positive'), but seeks guidance on implementing relational assumptions like b < a. The conversation also mentions Wolfram Alpha as an alternative tool for handling such mathematical conditions.

PREREQUISITES
  • Familiarity with MATLAB symbolic toolbox
  • Understanding of mathematical assumptions and inequalities
  • Basic knowledge of integration techniques in MATLAB
  • Experience with symbolic variable declarations in MATLAB
NEXT STEPS
  • Research how to implement relational assumptions in MATLAB using assume function
  • Explore MATLAB documentation on symbolic math for advanced features
  • Learn about alternative tools for symbolic computation, such as Wolfram Alpha
  • Investigate MATLAB's int function for integrating expressions with assumptions
USEFUL FOR

Students, engineers, and researchers who are using MATLAB for symbolic mathematics and need to set specific assumptions for variables in their calculations.

sara_87
Messages
748
Reaction score
0

Homework Statement



I want to know how to set assumptions in Matlab. i want to integrate 3*a*x/b but i want to tell MATLAB that b is less than a.

Homework Equations





The Attempt at a Solution



I know how to set assumptions that a variable is real/nonreal/positive/negative.
eg: sym('a','positive')
but not specific assumptions as b<a.

Thank you in advance.
 
Physics news on Phys.org

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K