Problem with “does not evaluate to a numeric scalar at the coordinate {2.75,3/2}, but it is outside domain

enter image description here

Problem with "does not evaluate to a numeric scalar at the coordinate {2.75,3/2}, but that point is outside domain. How can I fix it??

Remove["Global`*"] ; Needs["NDSolve`FEM`"] HeatTransferModelAxisymmetric[T_, {r_, z_}, k_, ρ_, Cp_,Velocity_, Source_] := Module[{V, Q}, V = If[Velocity === "NoFlow", 0, Velocity.Inactive[Grad][T, {r, z}]]; Q = If[Source === "NoSource", 0, Source];(1 - (r)^2 - ((1 - 0.5^2)/(Log[1/0.5]))*Log[1/r])*D[T, z] +1/r*D[-k*r*D[T, r], r] + D[-k*D[T, z], z] + V - Q] op = HeatTransferModelAxisymmetric[T[r, z], {r, z}, k, ρ, Cp,"NoFlow", "NoSource"] parameters = {k -> 10, d -> 10}; Subscript[Γ, flux] = NeumannValue[40*(500 - T[r, z]), r == 2.5]; Subscript[Γ, temp] = DirichletCondition[T[r, z] == 1200, r == 1]; Subscript[Γ, enter] = DirichletCondition[T[r, z] == 800, z == 0]; Ω = Rectangle[{1, 0}, {2.5, 3}]; pde = {op == Subscript[Γ, flux],Subscript[Γ, temp],Subscript[Γ, enter]} /. parameters; Tfun =NDSolveValue[pde, T, {r, z} ∈ Ω]; MassTransferModelAxisymmetric[c_, {r_, z_}, d_, Velocity_, Source_] :=Module[{V, Q},V = If[Velocity === "NoFlow", 0, Velocity.Inactive[Grad][c, {r, z}]];Q = If[Source === "NoSource", 0, Source];(1 - (r)^2 - ((1 - 0.5^2)/(Log[1/0.5]))*Log[1/r])*D[c, z] + 1/r*D[-d*r*D[c, r], r] + D[-d*D[c, z], z] + 4.67`*^14*Exp[-36635/(Tfun[r, z])]*c + V - Q] op2 = MassTransferModelAxisymmetric[c[r, z], {r, z}, d, "NoFlow","NoSource"] Subscript[Γ, enter] = DirichletCondition[c[r, z] == 800, z == 0]; pde2 = {op2 == Subscript[Γ, enter]} /.parameters;cfun=NDSolveValue[pde2, c, {r, z} ∈ Ω]; 

How to find the Inverse of numeric Function that was created from NDSolve

I’m a newbie to Mathematica and i do have a simple question. I have a function H that was created numerically as solution form NDSolve (like H(R)), and i’m trying to create the Inverse function R(H) for my next step of manipulation. I was trying to use InverseFunction method, but it does not seems to work since it expects a square matrix of data. any idea? Thank u E

Why does SQL Server say it can’t convert varchar to numeric?

I have the following schema/data in MSSQL Server 2019 (SQLFiddle):

CREATE TABLE products(     idn NUMERIC(9) PRIMARY KEY );  CREATE TABLE sales(     idn NUMERIC(9) PRIMARY KEY,     pid VARCHAR(50) NOT NULL,     type VARCHAR(10) NOT NULL );  INSERT INTO products (idn) VALUES (1); INSERT INTO sales (idn, pid, type) VALUES (1, 1, 'number'); INSERT INTO sales (idn, pid, type) VALUES (2, 'Colgate', 'word'); 

sales has mixed data i.e VARCHAR and NUMERIC. The transaction filter takes care of JOINing correctly.

Why does the following SELECT fail?

SELECT      *  FROM      products      INNER JOIN sales ON products.idn = sales.pid      AND sales.type = N'number'  WHERE      products.idn in (1);  

I don’t see why casting NVARCHAR to NUMERIC is an issue:

SELECT CAST (N'1' as NUMERIC); 

If I modify the query slightly it works:

SELECT      *  FROM      products      INNER JOIN sales ON products.idn = sales.pid      AND sales.type = N 'number'  WHERE     -- Selecting the same data from `sales`.     sales.pid in (1);  SELECT      *  FROM      products      INNER JOIN sales ON products.idn = sales.pid     -- Dropping the `N` prefix.     AND sales.type = 'number'  WHERE      products.idn in (1);  

23 GB of domain.com.static[4 alpha numeric characters] files and project stats look weird

Looks like after all these years SER has gone mental on my VPS and made it run out of space (I dont really tweak anything for months / years now just leave it running on a healthy VPS)

c:\users\[user]\appdata\roaming\gsa search engine ranker\projects….

Usually 3 or so GB, today 23.6… whats the cause?

Applying rules to functions with non numeric arguments

I am trying to do the following (it’s a simplified version):

In[1]:= rulepositive = { f[a_?Positive]:> f[a] }; In[2]:= rulenegative = { f[a_?Negative]:> 0 };  In[3]:= $  Assumptions = Elements[w,Positive];  In[4]:= f[w]/.rulepositive In[5]:= f[w]/.rulenegative 

where I expect

Out[4]:= f[w] Out[5]:= 0 

But it doesn’t work. In words I want to apply a set of mapping rules in functions with non numeric arguments, which nevertheless have definite nature (e.g. Positive/Negative). How could I do it?

Ctrl+PgUp on numeric keypad not working

The numeric keypad on my laptop is not working with modifier keys. For example, the keys to switch tabs are Ctrl+PgUp in Nautilus and Gnome Terminal and Ctrl+Alt+PgUp in gedit. These keys work when I use the PgUp key next to right Ctrl, but they don’t work in these programs when I am using PgUp on the numeric keypad. However, Ctrl+PgUp does switch tabs in Firefox and Chrome. Without the modifier keys the numpad keys work fine. For example, I can move around using arrows and PgUp/PgDn in gedit.

NumLock and Universal Access > Mouse Keys are turned off. In Gnome Tweaks I set “Num Lock off: arrow keys (as in Windows)” under “Miscellaneous compatibility options”, but it does not seem to make a difference. I am using Ubuntu 19.04 with Gnome and X11.

How to switch off numeric keypad in BT keyboard

I’ve recently bought a compact Bluetooth keyboard. In Ubuntu, it works fine when wired, but when connecting it with Bluetooth, only some keys work, those around the U, and they correspond to a numeric keypad. I can fix this by switching off the BloqNum key with other keyboard, but the problem persists when I’m logging in, so in practice this doesn’t solve my problem, since I would like to use just the BT keyboard.

Is there a way to change this behaviour in Ubuntu? I’ve seen some solutions involving access to System → Preferences → Keyboard → Layout → Layout Options → Miscellaneous compatibility options, but I can’t find those options in my Ubuntu 19.04.

Cambiar variable de character a numeric

Tengo una variable (deciles_ingreso) en tipo character y necesito pasarla a numérica

siguiendo este camino me da error, pero no se como hacerlo

is.character(base$  ingreso_quintil)' base$  ingreso_quintil=as.numeric(base$  ingreso_quintil)' View(base$  ingreso_quintil)  

y esto hace que toda la variable cambie a “NA”, o sea no me es util que camino debo seguir

How to represent a numeric input that is limited to increments of some number

I have a requirement for a form that restricts a field value to fixed increments of 50 and I’m not sure what would be the most elegant way to represent that constraint in a meaningful fashion.

The simplest solution that comes to mind is a jQuery validate method combined with some server-side logic that is tied to a normal text field input. Other alternatives that come to mind is a number picker of some sort (I don’t know of one currently) that advances in set increments or a drop-down list with a fixed number of values.

Any other ideas? What would feel most intuitive to you?