How to integrate MathType for Froala in Vue.js project

I am trying to integrate the Wiris MathType editor into Froala (v3.2.6), which is embeded in a Vue project. After following the instructions from the official documentation (, I keep getting this error in the browser:
“Uncaught SyntaxError: Unexpected token ‘<‘ at wiris.js:1” even though everything seems to be fine in the public/index.html where the module is loaded (via script tag).

Then, tried to do it differently and import the module in main.js instead of loading it in index.html, but then I got a different error, saying:

Uncaught ReferenceError: FroalaEditor is not defined
at Module.eval (wiris.js?3c99:3)

Any idea how to solve this? Did someone manage to load the module the way the documentation describes it?

c# – web3 integrate existing ERC20 contract

I want to integrate USDT (ERC20) contract for my website, I will generate a deposit address for user. And I will withdraw all the balance into my own wallet end of the day.

I refer , but only show a contract address: 0xdac17f958d2ee523a2206206994597c13d831ec7

How do i using Web3 to integrate it? Is it the way i do is correct?

        var contractABI = @"({""name"":""balanceOf"",""name"":""totalSupply"",.......})";

        var web3 = new Web3(?????); //what url should I put here?

        var contractAddress = "0xdac17f958d2ee523a2206206994597c13d831ec7"; //USDT contract address
        var contract = web3.Eth.GetContract(contractABI, contractAddress);

        var getTotalSupply = contract.GetFunction("totalSupply");
        var totalSupply = await getTotalSupply.CallAsync<UInt64>();

calculus and analysis – How to integrate faster

I always wanted to know how to speed up my integral computation in mathematica. Is there some techniques that i am unaware to make the integration faster.

Here an example:

func = (2 ((Mu)G2-(Mu)Pi2) (5 x^2+5 x (z-2)-4 ((Eta)-(Rho)+z-1)))/mb^2-12 (x+z-2) (-(Eta)-(Rho)+x+z-1)

The integration is given as:

Integrate(func, {x, 2*Sqrt((Eta)), 1 + (Eta) - (Rho)}, 
  {z, -((-(2*((Eta) - (Rho) + Sqrt(x^2 - 4*(Eta)) - 1)) + x*(Sqrt(x^2 - 4*(Eta)) - 2) + x^2)/
     (Sqrt(x^2 - 4*(Eta)) + x - 2)), (2*(-(Eta) + (Rho) + Sqrt(x^2 - 4*(Eta)) + 1) - 
     x*(Sqrt(x^2 - 4*(Eta)) + 2) + x^2)/(Sqrt(x^2 - 4*(Eta)) - x + 2)}, 
  Assumptions -> {0 < (Rho) < 1, 0 < (Eta) < 1, (Rho) < (Eta), (Eta) + 1 > 2*Sqrt((Eta)) + (Rho), 
    Element(mb, Reals)}, GenerateConditions -> False)

On my laptop i need 42.219 s to solve the integral. However, my integrals are getting more and more complicated so to learn new optimization methods would be much appreciated.

python – Functions involving integrate

I’d like to define a function f(x), and then define another function that it its integral.

from sympy import *
x = symbols('x')
f = lambda x: x**2

If I do this:

g = lambda x: integrate(f(x),x)

it fails when I try to enter a value for x. This is because it’s holding the right-hand side unevaluated until I call it. It passes the 2 into the integrate, and tries to integrate with respect to 2.

Is there a way to evaluate the integral symbolically in terms of x, and then define the function g(x) with that result?

calculus and analysis – Why so big difference between results of Integrate and NIntegrate?

Studying an interesting article of Daniel Lichtblau, I consider a variation of an example from it, calculating an improper integral

Integrate(RealAbs(Sin(x - y))^(-2/3), {x, 0, Pi}, {y, 0, Pi})

-((12 Sqrt((Pi)) Gamma(-(1/3)) HypergeometricPFQ({1/6, 1/2, 2/3}, {7/6, 7/6}, 1))/ Gamma(1/6))

This is not very useful analytic expression, so



Then I compare that result with the numeric one

NIntegrate(RealAbs(Sin(x - y))^(-2/3), {x, 0, Pi}, {y, 0, Pi}, 
Exclusions -> {y == x}, AccuracyGoal -> 3, PrecisionGoal -> 3)


The latest result is produced without any warning. How to explain so big difference between the numbers? Could this difference be decreased? Which result is more reliable?