How to use sympy to verify that integrate (cos (mx) * sin (nx), (xmem0pi 2pi)) = 0mjinn is an integer?

import sympy
a,b,m,n,x=sympy.symbols("a,b,m,n,x")
f1=sympy.cos(m*x)
f2=sympy.sin(n*x)
v2=sympy.integrate(f1*f2,(x,a,b))
print(v2.subs({a:0,b:2*sympy.pi,m:100,n:100}))

the result is 0
, but I can only take mforce n as a specific integer for checking calculation. How can I set mforce n to any integer? Thank you

Jun.10,2022

answer your own questions and add integer=True to it
clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e88096-4e375.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e88096-4e375.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?