Questions about the use of built-in Mathematica functions, including pure functions.

learn more… | top users | synonyms

1
vote
1answer
34 views

Calculate the partial vapor pressures of a variable at xB = 0.75 based on the interpolation functions of the data

I'm having troubles in solving an exercise for an assignment in my Chemistry course. Talking about interpolations, I've already have a graph but I need to:(c) Calculate the partial vapor pressures of ...
0
votes
3answers
79 views

Using Solve to obtain a constant so that f(x) is continuous at x=2

I need to solve for c such that the function is continuous at x=2. How do I do this automatically? I have expressions for ...
2
votes
1answer
69 views

How to package a function for export?

I often post code for functions on Stack-Exchange, and then later find that they are unexecutable - that people can't use them because I mistakenly omitted some private functions or values that are ...
5
votes
1answer
67 views

Using a progress bar in a functional expression

If we have a procedural construct like a Do loop or Table, it is straightforward to make a progress bar to indicate the percent ...
1
vote
1answer
86 views

What are the terms of the sequence generated by Zeta(3s)/Zeta(s)?

The LiouvilleLambda function has Dirichlet generating function of Zeta[2s]/Zeta[s]. I am curious about an analogous function with Dirichlet generating function of Zeta[3s]/Zeta[s]. Can Mathematica ...
0
votes
1answer
73 views

how to download using weather data function many proporties exactly.

how to download using weather data function many proporties exactly. Example WeatherData["WMO44292", "Humidity", "Pressure", "Temperature", \ {{2005, 1, 1, 0, 0}, {2015, 1, 1, 0, 0}}] .
1
vote
2answers
58 views

NotebookWrite in EvaluationBox forces Input CellStyle

There is a promissing new function EvaluationBox[] and a nice last example in documentation section for it: ...
1
vote
1answer
37 views

How to change time zone for all outputs? [closed]

How to change the time zone in Mathematica for all functions returning a date or time?
3
votes
1answer
46 views

How should I define functions that distribute over Plus?

I have a linear function which also follows the chain rule (it is a derivation), so I defined it recursively, following a Wolfram tutorial (which I've misplaced) and other related answers: ...
1
vote
1answer
65 views

Working with derivative of conjugate of a complex number

I have a complex function, lets say $g(x)$. I want to take its and its conjugate's derivative. I need the solution of derivative which must be symbolically and computationally efficient. Lets take an ...
0
votes
1answer
66 views

Defining Solutions to FindRoot a functions of parameters-Part II

Here's a similar question as the the preceding question with the same title, but this time with vectors, which I need to use. I followed the suggestion in the answer the the previous question, but it ...
2
votes
1answer
175 views

Weierstrass function

I am trying to create plot of the Weierstrass function in Mathematica. I wonder if it's possible, when I define this function as ...
1
vote
1answer
59 views

FunctionDomain doesn't work with If

When I call FunctionDomain for function defined by a formula with If, for example ...
1
vote
0answers
45 views

How to simplify an expression with a radical sign nesting in a radical sign

Is there a function can simplify an expression with a radical sign nesting in a radical sign in Mathematica? I use V9. RatDenmon is a function that can ...
0
votes
2answers
82 views

Function with condition

I am starting my adventure with Mathematica. I would like to know if is there possibility to create function described by formula for example f(x):=1+2^n where 2^n < x. I have problem with this ...
1
vote
1answer
38 views

Tooltip : Mapping list of Tooltip values to list of functions while plotting

How is it possible to map a list of Tooltip values to the functions being plotted? For example: Assume, f1[x], f2[x], f3[x]... are functions defined. {t1, t2, t3, ...} are the list of tool-tips to ...
1
vote
2answers
47 views

Problem with Replace function [closed]

I recently started using Mathematica. I'm not able to understand my mistake. I'm trying to implement the Frangi vesselness for the enanchement of vessels in biomedical images. I wrote these functions: ...
0
votes
1answer
34 views

Generating comma separated input for LCM [duplicate]

I would like to calculate the Least Common Multiple of the 100 first numbers. I've tried with LCM[Table[i, {i, 10}]] But it produces a list instead of the right ...
0
votes
0answers
36 views

Piecewise function output response interpretation

Piecewise[{{t^2, t <= 0}, {t, t >= 0}}] Outputs: t^2 t <= 0 t t >= 0 0 True What does the last line of output 0 True mean? Sometimes it ...
0
votes
1answer
78 views

Simultaneously fitting two data sets to two functions is too slow [closed]

I have to fit two data sets to two functions(eps1,eps2) with same parameters (w0,f,g) Initially, I know only one function ...
1
vote
2answers
94 views

Evaluate a list

I have a function $f(x_1,\cdots,x_n)$ that takes $n$ arguments, and I would like to evaluate it using a list of lists $\lbrace\lbrace x_1,\cdots,x_n \rbrace,\cdots,\lbrace x_1',\cdots,x_n' ...
1
vote
1answer
41 views

Defining functions that depend upon other functions which depend upon other functions and so on

The problem is that I have to evaluate functions, that take output from previous functions, and combine them to form new functions, and do some operations and evaluate the value at new function. But, ...
0
votes
1answer
51 views

Does Mathematica always return a rational number in its simplified form? [closed]

If I enter: 1/RandomInteger[10^200]+1/RandomInteger[10^200] I get (instantly) an exact fraction. Is this fraction in simplified (reduced) form? In other words is ...
0
votes
1answer
43 views

FindRoot over a function with some constant variables

I would like to perform the FindRoot command over the function func. Suppose: ...
7
votes
2answers
646 views

How to programmatically covert a function-like rule to a pure function?

Is there a programmatic way to convert a Mathematica rule that acts like a typical mathematical function of one variable into the equivalent pure function? For example, the code should convert ...
2
votes
1answer
43 views

How do I make Mathematica nest argument changes?

I want something like Nest[f,x,n], but what where f is an argument change like a pushforward and x[t] is a function, for example, symbolically, and not in any sort of code: $$ F{x[t]} \equiv x[2t + ...
1
vote
1answer
101 views

Quantum Physics question [closed]

I'm not sure if anyone here would be able to help me. But if you know a more appropriate place where I could ask for help, please let me know. So here's the question: And here's my attempt at ...
3
votes
1answer
82 views

Why is left NumberPadding always applied in NumberForm?

I would like to display numbers like 9.0001 and 10.0001 in the fixed-width form of xx.xxxx. ...
17
votes
2answers
293 views

Why doesn't a Composition[] hold its arguments and what can be done about it?

Now that Composition (also RightComposition) has shorthand syntax I am more inclined to use it, however what I feel should be ...
13
votes
1answer
188 views

Why won't SparseArray let me store values with the head List?

When you attempt to define a SparseArray with elements that have the head List it complains: ...
5
votes
1answer
121 views

Why do functions defined with SetDelayed and Function behave differently in callbacks?

It seems to me that functions defined using a simple pattern and SetDelayed (the usual way to define a "function") should be equivalent in all respects to functions ...
0
votes
0answers
35 views

How can I get the covariance result cumulatively?

I am trying to derive the covariance results for n x 4 matrix where n is an arbitrary number. I am trying to derive the covariance for each row cumulatively. For example, I am trying to derive the ...
-2
votes
1answer
60 views

plot sum of two function

I am trying to illustrate sum of functions. I have one function x*x - 8*x + 7 and another Log[2*x + 4.5] I understand that I ...
6
votes
2answers
178 views

Built in function without Attributes Listable works as if it has Attributes Listable

Can Built-in function works as if it has Attributes Listable even if it doesn't have that ...
13
votes
1answer
172 views

Major slowdown when using a ColorFunction with more than one named scheme

Earlier Kuba noted a major slowdown with code Simon Woods posted. Here is a simplified example. First a color function using two different named gradient schemes: ...
1
vote
4answers
63 views

NestWhileList, control to show the second sequence

For example,each number will end up with 89 or 1, however , How can I generate a sequence with two sub sequence. f[n_] := IntegerDigits[n]^2 // Total One sub ...
17
votes
2answers
1k views

Sum or Product with Exclusions

Is there a built-in feature for handling things like: $$\sum_{\substack{i=0\\i\ne j}}^n\frac{a-a_i}{a_i-a_j}$$ and $$\prod_{\substack{i=0\\i\ne j}}^n\frac{a-a_i}{a_i-a_j}$$ or should I work out some ...
3
votes
1answer
131 views

Creating the Nabla operator as a operator

How can I define the nabla-operator as a an operator, acting on everything to the right of the operator! Also taking \[Del]^2 would give the second derivivates. I wish to be able to write ...
1
vote
1answer
47 views

little problem of Thread, List head of second argument

Thread[f[{a, b, c}, 0]] (* {f[a,0],f[b,0],f[c,0]} *) Thread[f[{a, b, c}, pp[0]]] (* {f[a,pp[0]],f[b,pp[0]],f[c,pp[0]]} *) Howerver, the head of pp ...
2
votes
3answers
98 views

Finding minimum of a list of pairs

Sometimes I need to find the Min of a list, whose elements are lists (say of two elements, a pair). Given that Min does not have the option to indicate a sorting function like Sort, I elaborated the ...
1
vote
1answer
40 views

Changing Function Domain of Fourier Series

If I write FourierSinSeries[x, x, 10] Mathematica will output the first 10 terms of the Fourier Sine Series f(x) = x defined for 0 < x < Pi. How do I output the the Fourier Sine Series for ...
12
votes
1answer
315 views

Is everything in Mathematica ultimately stored as a rule?

My current understanding about Mathematica is that everything, at the lowest level, ends up as replacement rules. First question: is this true? Second question: does Mathematica "gloss over" these ...
6
votes
3answers
223 views

How to build a matrix from a set of vectors and other matrices using ArrayFlatten

I want to build a 6 by 3 matrix, from the following: one vector is 3 by 1, then a matrix, which is 3 by 2. These will go to the top 3 rows. Now the bottom 3 rows, I'll have 3 vectors each is 3 by 1. ...
2
votes
2answers
158 views

Plotting difference between a function and its inverse function

I would like to plot the difference a function and its inverse function. (1/27)*(x^4-6x^3+12x^2+19x) (* where 0<x<5 *) I tried the following: ...
84
votes
8answers
7k views

List of compilable functions

Is there somewhere a list on the functions that Compile can compile, or the cases in which a particular function can be compiled that I haven't found? I'd be glad ...
1
vote
1answer
36 views

Function taking arbitrary number of arguments

I have a very similar function to that which a solution was provided by kguler, but am unsure as to how to adapt the solution that was given there. That post can be seen here. The adaptation is only ...
3
votes
1answer
94 views

Listable on first level [duplicate]

I have some function which take List as input. f[l_List]:=someActions[l] I need apply this function to a list of lists. Now I ...
1
vote
1answer
85 views

How to find and verify relationships between functions?

MMa gave me a complicated result involving Hypergeometric0F1's. It was much less complicated after I discovered this identity: ...